I've run into a problem with mutliple ManyToMany fields with the same
model. Only one set of the get_*_list() methods show up pointing
backwards:
class Group(meta.Model):
owners = meta.ManyToManyField( User, singular='owner',
related_name='ownerof')
members = meta.ManyToManyField(User, s
Thanks, that's really helpful. I missed that argument when I was going
through the docs.
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
Is it possible to hide fields in the admin interface? I want my admin
interface to be able to modify only some fields on an already created
object. I want the fields that aren't displayed to merely stay the
same. However, if I leave the undesired fields out of the fields list,
I get errors when
Thanks, I didn't notice that function before. Maybe the docs could
specify when and why you'd want to use it, such as my case above.
Paul
In order to load some test data into the database, I'm using the
following code:
from django.core.db import db
cursor = db.cursor()
cursor.execute("insert into cities (id, name) values (1,
'Chicago');")
cursor.execute("insert into cities (id, name) values (2,
'Miami');")
...
6 matches
Mail list logo