The current framework only allow for one "profile class" per site.

If you want you can  let this class return different profiles
depending on the user.

class mysiteprofile(models.Model)
   user = models.ForeignKey(User, unique=True,
related_name='user_profile')
   ...
   ...

   def get_for_user(self):
         if self.user is something:
               return profile_one
         else:
               return profile_two

@login_required
def myview(request):
    profile = request.user.get_profile().get_for_user()

On Feb 5, 5:01 pm, "voltron" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Accoridng to the Django book, one could extend the basic user model by
> adding a profile class, this class is then set in the settings module
> thus:
>
> AUTH_PROFILE_MODULE = "myapp.mysiteprofile"
>
> How do I set multiple profiles? I would like to have different types
> of users, diffrentiating via different profiles.
>
> Thanks


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to