On Fri, Sep 25, 2009 at 11:34 AM, DavidA <[email protected]> wrote:

>
> Thanks, Karen. You were right - I had overridden it. If I delete the
> __unicode__ method it works now. What's odd is that I can't seem to
> catch any exception. If I try the code below, the admin still breaks.
> And what's also odd is that I never see my models.py file in the stack
> trace.
>
>
Then it doesn't sound like you can't catch the exception but rather that a
different problem is being hit.  Without the new stack trace, though, I
don't have any idea what it might be...

Karen   def __unicode__(self):

>        try:
>            return self.document.url
>        except:
>            return u'File deleted'
>
> Thanks,
> -Dave
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to