Re: inlineformset_factory and changing data set in form

2009-09-14 Thread dimitri pater - serpia
formfield_callback argument was the solution to my problem On Mon, Sep 14, 2009 at 4:18 PM, dimitri pater - serpia wrote: > Hello, > > Suppose we have two models: > > CH_AUTH = ((u'J', u'John'),(u'P', u'Peter'),(u'M', u'Marc'),) > > class Publisher(models.Model): >    name = models.CharField(max

Re: inlineformset_factory and changing data set in form

2009-09-14 Thread V
On szept. 14, 16:18, dimitri pater - serpia wrote: > Hello, > > Suppose we have two models: > > CH_AUTH = ((u'J', u'John'),(u'P', u'Peter'),(u'M', u'Marc'),) > > class Publisher(models.Model): >     name = models.CharField(max_length=100) > > class Book(models.Model): >     publisher = models.For

inlineformset_factory and changing data set in form

2009-09-14 Thread dimitri pater - serpia
Hello, Suppose we have two models: CH_AUTH = ((u'J', u'John'),(u'P', u'Peter'),(u'M', u'Marc'),) class Publisher(models.Model): name = models.CharField(max_length=100) class Book(models.Model): publisher = models.ForeignKey(Publisher) author = models.CharField(max_length=1, cho