Re: Extend model choice in project

2010-01-28 Thread Delacroy Systems
I have the choices in a model. I want it this way so that the choices can be managed from the admin console. I have this code in models.py. class StatusChoices(models.Model): choice = models.CharField(max_length=10) #Actual value that is saved description = models.CharField(max_length

Re: Extend model choice in project

2010-01-22 Thread Daniel Roseman
On Jan 22, 2:33 pm, Thomas Guettler wrote: > Hi, > > in my app I have this: > > class FooModel(models.Model): >     example=models.SmallIntegerField(choices=[(1, u'one'), >                                               (2, u'two'), >                                               ...] > > I want to

Extend model choice in project

2010-01-22 Thread Thomas Guettler
Hi, in my app I have this: class FooModel(models.Model): example=models.SmallIntegerField(choices=[(1, u'one'), (2, u'two'), ...] I want to extend the choices at project level. Where should I put the