#19362: Recursion error when deleting model object through admin
-------------------------------+---------------------------------------
     Reporter:  m3wolf         |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.5-alpha-1
     Severity:  Normal         |               Resolution:
     Keywords:  python2.7.3    |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+---------------------------------------

Comment (by aaugustin):

 Indeed, replacing `force_text(self)` with `self.__unicode__()` makes the
 recursion go away. But replacing it with `unicode(self)`
 (or`type(self).__unicode__(self)`, which is how the interpreter computes
 `unicode(self)`) brings it back.

 In the situation explained just above, it seems that Django will run the
 tests from the stale `.pyc` in `modeltests`, but the `Article` model from
 `regressiontests` is also loaded in the app cache, and that causes
 problems.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19362#comment:3>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to