Re: Hiding fields in admin interface

2005-11-27 Thread pgross
Thanks, that's really helpful. I missed that argument when I was going through the docs.

Re: Hiding fields in admin interface

2005-11-27 Thread oggie rob
> The core of my problem is that the foreign key field points to a table that is huge (tens of thousands of values). Ahh, that makes it much easier! You can put the foreign key in there with the field argument "raw_id_admin=True". It will be much quicker to load and much cleaner to use. class Po

Re: Hiding fields in admin interface

2005-11-27 Thread pgross
I get the same problem with this field. It doesn't show up in the admin interface, but when I try to save the object, it blanks the field and tries to update it in the database. Since the field I want hidden is a foreign key, the update statement dies saying "ERROR: invalid input syntax for inte

Re: Hiding fields in admin interface

2005-11-26 Thread oggie rob
Did you try the "editable=False" argument, as in: class MyModel(meta.Model): myField = meta.CharField(maxlength=20, editable=False)