#20777: admin delete page proxy models
---------------------------------+--------------------------------------
     Reporter:  CollinAnderson   |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  contrib.admin    |                  Version:  1.6-beta-1
     Severity:  Release blocker  |               Resolution:
     Keywords:                   |             Triage Stage:  Accepted
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  1
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Changes (by timo):

 * needs_better_patch:  0 => 1


Comment:

 As discussed on IRC, the first solution may not work as `obj.__unicode__`
 and `obj.__str___` invoke the class-level methods and cannot be overridden
 on individual instances. The test works for Python 2 only because of the
 implementation details of `@python_2_unicode_compatible` which calls
 `self.__unicode__()`. Arguably, this should be `klass.__unicode__()` to
 mimic the behavior of Python.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20777#comment:6>
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/072.e2a4e53429daf9bf992a42ffee2dd219%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to