We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fcf8ad commit aeff74aCopy full SHA for aeff74a
1 file changed
django/forms/models.py
@@ -965,7 +965,7 @@ def label_from_instance(self, obj):
965
generate the labels for the choices presented by this object. Subclasses
966
can override this method to customize the display of the choices.
967
"""
968
- return smart_unicode(obj)
+ return smart_unicode(obj, errors='ignore')
969
970
def _get_choices(self):
971
# If self._choices is set, then somebody must have manually set
0 commit comments