hi copy de code in first line your models.py or views.py # -*- coding: UTF-8 -*-
bye :) On Thu, Feb 18, 2010 at 7:55 PM, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, Feb 18, 2010 at 11:18 AM, hooda_28 <robnan...@gmail.com> wrote: > >> hi im having a problem for about an hour now, i have a model >> >> class Dummy(models.Model): >> sell = models.CharField(max_length=20, choices=Z_CHOICES) >> >> def __unicode__(self): >> return u'%s' % (self.sell) >> >> where Z_CHOICES =('9 , 'ñññ'),('10' , 'ña'),('11' , "aña"),) that is >> dynamically created by a script >> >> and here is my admin part >> >> class DummyAdmin(admin.ModelAdmin): >> fields = ('sell',) >> admin.site.register(Dummy, DummyAdmin) >> >> there is no select box/input box appearing and no error being returned >> by django.. i know its the non-ascii characters that cause this but >> how can i fix it? >> >> > Ensure the strings containing non-ASCII characters are unicode strings, not > bytestrings. > > 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-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.