Restrict choices in ModelForm for ForeginKey field

2010-03-01 Thread AlienBaby
Hi. I have a situation very similar to the following; [code] class chars(models.Model): name=moels.CharField('Name',max_length=32) associated_id=models.IntegerField('Associated',blank=False,null=False) associated_id.default=0 class ctor(models.Model): A=models.Fore

Re: Restrict choices in ModelForm for ForeginKey field

2010-03-02 Thread AlienBaby
that shows up in any modelform derived from it too. > > http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.mod... > > Hope that helps, > Alex > > On Mar 1, 8:24 am, AlienBaby wrote: > > > Hi. > > > I have a situation very similar to the followin