#28505: Django admin many to many recursive field widget shows identical objects
-------------------------------------+-------------------------------------
     Reporter:  Darshan Singh        |                    Owner:  Darius
  Khalsa                             |
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  1.10
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Darius):

 Just looking at the code, your using __unicode with python 3?

 In Python 3, you need to define a __str__ method instead of a __unicode__
 method. There is a decorator python_2_unicode_compatible which helps you
 to write code which works in Python 2 and 3.

 see below.  There are example of this on django docs.

 [https://docs.djangoproject.com/en/1.11/topics/python3/]

 Can u try it and provide an update.

 {{{

 from __future__ import unicode_literals
 from django.utils.encoding import python_2_unicode_compatible

 @python_2_unicode_compatible
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28505#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.6196d47f64aff6852ab98141adb6ab45%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to