On Jan 22, 2:33 pm, Thomas Guettler <[email protected]> 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 the choices at project level. Where > should I put the code? > > Thomas
Perhaps put the choice list in settings.py, and import it from there in your models.py? -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

