How about writting adapter to the django user class? It can have
descriptor for login (getting login would return users email). While
creating such user login would be set (only once, during creation) for
example the following value: user id converted to string preceded by
one character. For other custom fields there can be also descriptors,
but they would reffer to yours customer model (for example adapters
field homepage which would be descriptor would reffer to
customer.homepage).

Regards,
Marek

On 17 Sie, 19:05, Joshua Partogi <joshua.part...@gmail.com> wrote:
> On Mon, Aug 17, 2009 at 10:40 PM, Jonas Obrist <ojiido...@gmail.com> wrote:
>
> > Here's what I did:
>
> > I took the built in auth system and changed it a bit, or to be more
> > precise I changed all imports within auth (because I moved it within the
> > pythonpath) and edited models.py:
>
> >http://dpaste.com/81651/
>
> > Whole code:
>
> >http://www.ojii.ch/auth.tar.gz
>
> > If you wanna use it:
>
> > Add the folder in the archive to your pythonpath.
>
> > Add 'auth' to your installed applications
>
> > Set 'USER_MODEL' in your settings file to the model you use (string).
>
> Is it better to re-write the user model or to extend it? Any insights?
>
> Thanks in advance
>
> --http://blog.scrum8.comhttp://twitter.com/scrum8
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to