Re: foreign key search in admin

2011-03-05 Thread Mike Ramirez
On Saturday, March 05, 2011 07:19:23 am Bobby Roberts wrote: > hi all... i'm banging my head against a wall here. > > consider this model > > class mymodel(models.Model): > id = models.AutoField (primary_key=True) > Barcode = models.IntegerField(unique = True, blank=False) >

foreign key search in admin

2011-03-05 Thread Bobby Roberts
hi all... i'm banging my head against a wall here. consider this model class mymodel(models.Model): id = models.AutoField (primary_key=True) Barcode = models.IntegerField(unique = True, blank=False) CustomerId= models.ForeignKey(Customer, db_index=True, blank=True, null =