Multiple ManyToManyFields to the same Model loses getters

2005-11-28 Thread pgross
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

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 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

Hiding fields in admin interface

2005-11-26 Thread pgross
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

Re: Sequence in PostgreSQL is not updated when doing manual insert

2005-11-24 Thread pgross
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

Sequence in PostgreSQL is not updated when doing manual insert

2005-11-23 Thread pgross
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');") ...