Re: Automatically creating auth.models.group for an application

2009-06-03 Thread eric.frederich
No, the issue isn't adding a user to that group, what I'm talking about is how do I create the group in the first place? I feel that creating the group should be done when running syncdb. On Jun 2, 4:27 pm, Daniel Hilton wrote: > 2009/6/2 eric.frederich : > > Couldn't you do this with the post-s

Re: Automatically creating auth.models.group for an application

2009-06-02 Thread Daniel Hilton
2009/6/2 eric.frederich : > > In an application I'm writing I have a model that stores admins by > location in a model called LocationAdmin.  So in this model I have a > foreign key to User and a foreign key to a Location object. > > I would like to override the save() method so that when an Admin

Automatically creating auth.models.group for an application

2009-06-02 Thread eric.frederich
In an application I'm writing I have a model that stores admins by location in a model called LocationAdmin. So in this model I have a foreign key to User and a foreign key to a Location object. I would like to override the save() method so that when an Admin is created they are assigned to a sp