Step 1: Write something like this in the appropriate app's models.py class CustomUser(User): client=models.ForeignKey('Client')
Step 2: Either create your own ModelAdmin that extends django.contrib.auth.admin.UserAdmin or just use UserAdmin outright. Step 3: Create a middleware that runs after the auth middleware that replaces request.user with an object of your custom user class. Django should handle it perfectly internally, so you'll be left with an entirely custom user system that you can change in any way you want. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---