I'm subclassing django.contrib.auth.models.User to create a custom
user type (Student) with extra fields, following
http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-with-inheritance/.
(Is there no documentation on djangoproject.org on how to do this?)
Some relevant snippets of code: http://pastie.org/1721216

I've create a Student and given the account "staff" status, to be able
to log in to the admin interface. The Student can't log in there,
however. When i create a User in the same way, that User can log in.

Also i noticed the password is saved unhashed: i can read the password
i typed from the edit form. Password reset form doesn't work:
http://pastie.org/1721206 Another thing i noticed: adding a Student
also ads a User, but removing the Student doesn't remove the User.

What am i doing wrong?

Kees

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