Re: help with foreign keys in admin

2011-02-04 Thread Derek
Python is amazingly good at many things... but mind reading is not one of them yet ;) On Feb 3, 3:08 pm, Bobby Roberts wrote: > nevermind... it was a case issue... you know if python knows there's > an error with case  it would just say "hey check the case here" > > On Feb 3, 12:31 am, Karl Bowde

Re: help with foreign keys in admin

2011-02-03 Thread Bobby Roberts
nevermind... it was a case issue... you know if python knows there's an error with case it would just say "hey check the case here" On Feb 3, 12:31 am, Karl Bowden wrote: > On 3 February 2011 16:14, Bobby Roberts wrote: > > > > > considering this model: > > > class Inventory (models.Model):

Re: help with foreign keys in admin

2011-02-03 Thread Bobby Roberts
i've got that added in and ran a syncdb and i'm stuck on this err: django.core.exceptions.ImproperlyConfigured: InventoryAdmin.readonly_fields[0], 'BarCode' is not a callable or an attribute of 'InventoryAdmin' or found in the model 'Inventory'. but I'm not seeing anything wrong with my readonly

Re: help with foreign keys in admin

2011-02-02 Thread Karl Bowden
On 3 February 2011 16:14, Bobby Roberts wrote: > considering this model: > > class Inventory (models.Model): >id = models.AutoField (primary_key=True) >Barcode = models.BigIntegerField(blank=False) >Location = models.CharField (max_length=25,blank=False, > db_index=True) >

help with foreign keys in admin

2011-02-02 Thread Bobby Roberts
considering this model: class Inventory (models.Model): id = models.AutoField (primary_key=True) Barcode = models.BigIntegerField(blank=False) Location = models.CharField (max_length=25,blank=False, db_index=True) Sku = models.CharField (max_length=25,blank=False, d