The standard way to extend user is through the user profile.
The following thread talked about showing user profile fields in the Auth User admin form.

http://groups.google.com/group/django-users/browse_thread/thread/2af584b66b8a38a3

This should be doable with the model manager, but you will have to play around with it some.
Or you should just create your own form.

Carl

On 04/01/2010 08:30 AM, Michał Klich wrote:
Hello,

I am writing website and i`d like to implement profile managment. Basic thing
would be to edit some of user details by themself, like first and last name
etc. Now, i had to extend User model to add my own stuff, and email address.
I am having troubles with displaying form. Example will describe better what i
would like achieve.

This is mine extended user model.
class UserExtended(models.Model):
     user = models.ForeignKey(User, unique=True)

     kod_pocztowy = models.CharField(max_length=6,blank=True)
     email  = models.EmailField()

This is how my form looks like.
class ProfilUzytkownika(ModelForm):
     class Meta:
         model = User

That code displays lots of fields, most of them are not for users to edit, i
could exclude them, but i would still miss ones from mine UserExtended class.

Is there a way to inherit User model in UserExtended modelform and then
exclude fields? I tried but obviously failed.
Or i a down to creating my own form and updating particular fields?

I am back to reading docs but will wait for any responses.

Thanks for help.



--
Carl Zmola
301-562-1900 x315
czm...@woti.com


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@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