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
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
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
3 matches
Mail list logo