#8774: ImageField errors in admin inline editing
--------------------------------------+-------------------------------------
Reporter: ramin | Owner: nobody
Status: reopened | Milestone: 1.0
Component: Template system | Version: SVN
Resolution: | Keywords: imagefield admin inline
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by vung):
What I can say for sure is this:
Adding a broken `__unicode__` method to the Image model above, I get a
traceback identical with the traceback from this ticket.
My traceback can be seen here: http://dpaste.com/75372/
The method isn't present in what was posted here, but the coincidence is
big and with the broken method the admin behaves as in the very short
description of this ticket:
* Adding an entry works (as there are no Images that need to be
represented)
* Editind an Entry which has inline Images attached causes the
exception, because force_unicode invokes the broken `__unicode__` method
Also, the above `__unicode__` method would not be broken in revisions
before [8244] (file storage refactoring), as before that self.file would
be an unicode object and not an !ImageFieldFile instance.
--
Ticket URL: <http://code.djangoproject.com/ticket/8774#comment:12>
Django Code <http://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 this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---