Re: extend User Model for custom fields

2011-03-27 Thread Derek
On Mar 26, 12:53 pm, Antonio Sánchez wrote: > Yeah sure, i should have used "recommended" word instead of correct. > > The difference between link i wrote and b-list is that the last one > uses a foreign-key, while first uses one-to-one, and this is the way > is recommended in doc, so... I think i

Re: extend User Model for custom fields

2011-03-26 Thread Antonio Sánchez
Yeah sure, i should have used "recommended" word instead of correct. The difference between link i wrote and b-list is that the last one uses a foreign-key, while first uses one-to-one, and this is the way is recommended in doc, so... I think i will follow that post recommendations. Thanks again!

Re: extend User Model for custom fields

2011-03-25 Thread Mike Ramirez
On Friday, March 25, 2011 01:16:51 pm Nick Serra wrote: > Andre's solution is out of date. Calvin is correct, use the user > profile model that is built into django auth. OP, the link you found > is correct. > > > > > http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-m... > > >

Re: extend User Model for custom fields

2011-03-25 Thread Nick Serra
Andre's solution is out of date. Calvin is correct, use the user profile model that is built into django auth. OP, the link you found is correct. On Mar 25, 11:39 am, Andre Terra wrote: > This is the correct way: > > http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-m... > > Sin

Re: extend User Model for custom fields

2011-03-25 Thread Andre Terra
This is the correct way: http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/ Sincerely, Andre Terra On Fri, Mar 25, 2011 at 11:26 AM, Antonio Sánchez wrote: > i have found this: > http://digitaldreamer.net/blog/2010/12/8/custom-user-profile-and-extend-user-admin-django/

Re: extend User Model for custom fields

2011-03-25 Thread Antonio Sánchez
i have found this: http://digitaldreamer.net/blog/2010/12/8/custom-user-profile-and-extend-user-admin-django/ do you think its the correct way?? thanks for your reply! On Mar 25, 2:12 pm, Calvin Spealman wrote: > The auth app includes support to use a profile model, configured with > AUTH_PROFI

Re: extend User Model for custom fields

2011-03-25 Thread Calvin Spealman
The auth app includes support to use a profile model, configured with AUTH_PROFILE_MODULE in settings, which the docs show you how to use. Yes you can use inheritance, but you might assume it is a good idea to use what the auth app promotes. On Fri, Mar 25, 2011 at 9:04 AM, Antonio Sánchez wrote:

extend User Model for custom fields

2011-03-25 Thread Antonio Sánchez
hi! i have a question, which is the best option about extending user model?? here: http://docs.djangoproject.com/en/1.2//topics/auth/#storing-additional-information-about-users they say to create a manual OneToOneField between models and some more stuff, but here: http://docs.djangoproject.