Hello.
I have problem with editing UserProfile through the admin interface.

I have such classes:

class UserProfile(models.Model):
    user = models.OneToOneField(User)
    credits = models.PositiveIntegerField()


class ModelProfile(UserProfile):
    description = models.CharField(_('description'), max_length=300)


UserProfile represents the "customer" user, ModelProfile represents
"model" user.

I need to create admin pages for customers and models. I can't use
User page for it as was written here
http://pyxx.org/2008/08/18/how-to-extend-user-model-in-django-and-enable-new-fields-in-newforms-admin/
because User can be or "customer" or "model".

I created admin page for UserProfile. How to add fields from User to
this page?

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