I have a UserAdmin, and I defined a UserProfileInline like this:

-------------
from ...  
from django.contrib.auth.admin import UserAdmin as UserAdmin_

class UserProfileInLine(admin.StackedInline):
    model = UserProfile
    max_num = 1
    can_delete = False
    verbose_name = 'Profile'
    verbose_name_plural = 'Profile'

class UserAdmin(UserAdmin_):
    inlines = [UserProfileInLine]
-------------

My UserProfile model has some required fields.

What I want is to force the user not only to enter the username & repeat
password, but also to enter at least the required fields so that the
UserProfile instance is created and associated to the User that is being
added.

If I enter anything in any field of UserProfileInline when creating the
user, it validates the form without problem, but if I don't touch any field,
it just creates the User and nothing happens with the UserProfile.

Any thoughts?
Thanks in advance.

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