Hi all, I successfully extended the User as described in the
authorization documentation. Now I would like to use and edit the User
and my class Persona not like two entity but just one.

When I want to create a Persona, I have also to create a User first.
Now the steps are too long, how I can create an admin.TabularInline?
I tried this:

class UserInline(admin.TabularInline):
    model = User

class PersonaAdmin(admin.ModelAdmin):
    inlines = [
        UserInline,
    ]

But when I try to add a Persona I get the exception "has no foreign key"

I guess I have to do the reverse add an PersonaInline to the
UserAdmin, but I'm a little confused.

-- 
K.
Blog Personale: http://www.karimblog.net

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