--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
The advantage of this method is that you can seperate all the data you store about a User into different apps rather than just having one site wide UserProfile model which would need to store lots of different types of data that would probably benefit from being stored in seperate models.
Using a OneToOne field does the same thing as a FK with unique set to true, and simplifies queryset syntax.
> Using a OneToOne field does the same thing as a FK with unique set to true, and simplifies queryset syntax.
Good point.
Greetings,
Axel.
Here is the top one: Extending the user object will make your project
incompatible with 3rd party pluggable apps, as they will not be using
your inherited User model, they will be using
django.contrib.auth.models.User.
UserProfiles, however you implement them, are cumbersome and unwieldy,
but for interop reasons they remain the best way of extending the user
model. Using a separate profile for each app is also wise, since it
separates logically unrelated data.
There is also very little reason to define
settings.AUTH_PROFILE_MODULE apart from making user.get_profile()
work, and if you use a one-to-one field, the difference is then
user.get_profile() // user.myapp_profile .
Cheers
Tom