Hello everyone,
currently we have a working UserProfile, working with the auth.User.
Now, we plenty of things in this profile (tags, favorites, the usual
social networking blah ;-)), and we would really like to move them to
User as the rest of the models all refer to User!
So, there's Article.user but if we want tags, it's
Article.user.get_profile which is a pitty.
This works at the command line:
User.tags =
Tag.objects.filter(content_type=ContentType.objects.get_for_model(User))
User.comments =
Tag.objects.filter(content_type=ContentType.objects.get_for_model(User))
etc
But is there a way to patch User (without editing it's source of course)
to have these always? And, is it a good idea?
thanks a lot for any ideas!
- bram
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---