Re: How to modify contrib.auth models etc

2008-05-09 Thread Mike H
http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/ You can create a profile model that holds all the information you need, then in your settings specify APP_PROFILE_MODULE which will define a OneToOne relationship from the auth user to your profile model. It will the

Re: How to modify contrib.auth models etc

2008-05-09 Thread Scott Moonen
Ok. Sounds like you can probably get by with creating your own ancillary GroupData model (for example) and associating it one-to-one with the Group model. I've done this in the past with User, creating my own UserData model to hold some additional attributes, and it worked well for me. -- Scot

Re: How to modify contrib.auth models etc

2008-05-09 Thread Marcin Gorczyński
Well basicly I want the groups to have more data associeted with them - like a image filename, extracting the numer of users, one-to-one relations with a model in a news app and forum app, adding models like category like this category->groups, group and category moderators. Probarly I can get wha

Re: How to modify contrib.auth models etc

2008-05-09 Thread Scott Moonen
Hi Marcin. Can you give some more detail on what specific additional functionality you need? It is possible that you can augment the existing models by creating your own ancillary "UserData" and "GroupData" models, each with a OneToOneField that relates directly to the auth.models.User and auth.

How to modify contrib.auth models etc

2008-05-09 Thread Marcin Gorczyński
Hello I have a problem to tackle - in my site I want to have groups that have assigned forums, news etc. The Django contrib.auth just aren`t enough (also I need a more custom user model). Anyone can please tell me a good way to come around those limits? I thought about coding my own user, group a