On Wed, Oct 22, 2008 at 9:45 PM, Brian <[EMAIL PROTECTED]> wrote: > > This might seem obvious, and I just spend a couple hours straining > over it, so I thought I'd share. > > If you have a model, e.g.: > > def MyModel(models.Model): > # ... > # with a unicode function likeso: > def unicode(self): > return 'something' > > This will crash Django, without a stack trace. > > Of course, the function is supposed to be "def __unicode__(self):", > but it'd have been awful nice to be able to figure that out without > rehashing the entire codebase (it seems like such an innocuous > addition to the model at the time haha). > > Hopefully this will save someone some pain. :) > > It will crash when you do what? I don't see a crash, I just see models reverting to being reported as "xzy object" in the Admin.
Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---