Thanks, that's really helpful. I missed that argument when I was going
through the docs.
> 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
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
Did you try the "editable=False" argument, as in:
class MyModel(meta.Model):
myField = meta.CharField(maxlength=20, editable=False)
4 matches
Mail list logo