List Info

Thread: Preferred way to expand User Model?




Preferred way to expand User Model?
country flaguser name
United States
2007-08-31 03:44:36
Hi,

what is the preferred way to expand the user model? I would
use a
model with a OneToOne Field, but documentation says i should
not. What
should i do instead?

Regards,

Andre


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Preferred way to expand User Model?
user name
2007-08-31 04:02:51
On 8/31/07, Rotlaus <rotlausgmail.com> wrote:
> what is the preferred way to expand the user model? I
would use a
> model with a OneToOne Field, but documentation says i
should not. What
> should i do instead?

A foreign key with unique=True, as covered in the Django
book.


-- 
"Bureaucrat Conrad, you are technically correct -- the
best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Preferred way to expand User Model?
country flaguser name
United States
2007-08-31 04:17:06
On Aug 31, 11:02 am, "James Bennett"
<ubernost...gmail.com> wrote:
> > what is the preferred way to expand the user
model? I would use a
> > model with a OneToOne Field, but documentation
says i should not. What
> > should i do instead?
>
> A foreign key with unique=True, as covered in the
Django book.

I have read the documentation for hours, but i never thought
of
looking into the Django Book. And the solution there is even
better as
i imagined.

Thanks,

Andre


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Preferred way to expand User Model?
user name
2007-08-31 04:24:53
On Fri, Aug 31, Rotlaus wrote:

> 
> On Aug 31, 11:02 am, "James Bennett"
<ubernost...gmail.com> wrote:
> > > what is the preferred way to expand the user
model? I would use a
> > > model with a OneToOne Field, but
documentation says i should not. What
> > > should i do instead?
> >
> > A foreign key with unique=True, as covered in the
Django book.
> 
> I have read the documentation for hours, but i never
thought of
> looking into the Django Book. And the solution there is
even better as
> i imagined.

There's also a blog entry about this:

http://www.b-list.org/weblog/2006/06/06/
django-tips-extending-user-model

Michael


-- 
noris network AG - Deutschherrnstraße 15-19 - D-90429
Nürnberg -
Tel +49-911-9352-0 - Fax +49-911-9352-100
http://www.noris.de - The
IT-Outsourcing Company
 
Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel,
Hansjochen Klenk - 
Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG
Nürnberg HRB 17689

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Preferred way to expand User Model?
user name
2007-08-31 04:59:58
On 8/31/07, Michael Radziej <mirnoris.de> wrote:
> There's also a blog entry about this:
>
> http://www.b-list.org/weblog/2006/06/06/
django-tips-extending-user-model

Which reminds me I need to add a link from that entry to the
relevant
bit in the book.


-- 
"Bureaucrat Conrad, you are technically correct -- the
best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )