Re: choices in model field error

2010-02-21 Thread carlos
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 wrote: > On Thu, Feb 18, 2010 at 11:18 AM, hooda_28 wrote: > >> hi im having a problem for about an hour now, i have a model >> >> class Dummy(models.Model):

Re: choices in model field error

2010-02-18 Thread Karen Tracey
On Thu, Feb 18, 2010 at 11:18 AM, hooda_28 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

Re: choices in model field error

2010-02-18 Thread robin nanola
yes its all working fine, when i change may choices like for example Z_CHOICES =(('9','nnn'),('10','na',),) without any non-ascii character the select box were shown with the choices list. On Fri, Feb 19, 2010 at 2:56 AM, Timothy Kinney wrote: > Can you successfully log in to the admin site using

Re: choices in model field error

2010-02-18 Thread Timothy Kinney
Can you successfully log in to the admin site using the test server? On Thu, Feb 18, 2010 at 10:18 AM, hooda_28 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