Wiadomość napisana w dniu 2008-12-05, o godz. 12:43, przez Will McGugan:
> I'm getting an 500 error in my admin site when modifying an object > containing unicode. It seems to be an issue when constructing the > change message. Here's the details (running on Django 1.0). Any help > would be appreciated. > > > 'ascii' codec can't decode byte 0xe2 in position 37: ordinal not in > range(128) > > > · /www/django-sites/itpp/itpp/django/contrib/admin/options.py > in change_view > > 594. change_message = > self.construct_change_message(request, form, formsets) ... > > ▶ Local vars > > · /www/django-sites/itpp/itpp/django/contrib/admin/options.py > in construct_change_message > > 347. > change_message.append(_('Changed %(list)s for %(name)s "% > (object)s".') ... Check if __unicode__ method of this object really returns unicode object. -- We read Knuth so you don't have to. - Tim Peters Jarek Zgoda, R&D, Redefine [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---