Loading docs/ref/models/instances.txt +1 −1 Original line number Diff line number Diff line Loading @@ -613,7 +613,7 @@ For example:: return '%s %s' % (self.first_name, self.last_name) If you'd like compatibility with Python 2, you can decorate your model class with :func:`~django.utils.encoding.python_2_unicode_compatible` as show above. with :func:`~django.utils.encoding.python_2_unicode_compatible` as shown above. ``__eq__`` ---------- Loading Loading
docs/ref/models/instances.txt +1 −1 Original line number Diff line number Diff line Loading @@ -613,7 +613,7 @@ For example:: return '%s %s' % (self.first_name, self.last_name) If you'd like compatibility with Python 2, you can decorate your model class with :func:`~django.utils.encoding.python_2_unicode_compatible` as show above. with :func:`~django.utils.encoding.python_2_unicode_compatible` as shown above. ``__eq__`` ---------- Loading