Hi,

On 13.04.2009, at 22:30, Glenn Maynard wrote:

>
> Why do get_profile() and AUTH_PROFILE_MODULE exist, instead of just
> declaring the Profile to User relationship as OneToOne and using the
> auto-generated User.profile relationship?
>
> I just changed my Profile's User relationship from ForeignKey to
> OneToOne (the docs say to use ForeignKey, not OneToOne--is this an
> error?) and it works fine.
>
> It does mean you can access the profile without knowing the name of
> the class, but you need to know the contents of the model to do
> anything with it anyway.  Do user profiles predate reverse
> relationships?  I'm just curious about the the design rationale here.
>

oh, and this list is for the development of django.
Question about the usage of django should be directed at django-users.

adi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to