I haven't seen that error, but one thing I noticed about your model is
that I don't think you can just add things to the admin interface (like
you're trying to do with 'Extra info'). You have to copy the admin
section of auth.User if you want everything that's already there to
also show up. For instance, here's my User model:

class User(auth.User):
    company = meta.ForeignKey(Company)
    phone = meta.PhoneNumberField(blank=True)
    extension = meta.SmallIntegerField(blank=True, null=True)
    position = meta.CharField(maxlength=255, blank=True)
    class META:
        replaces_module = 'auth.users'
        admin = meta.Admin(
            fields = (
                (None, {'fields': ('username', 'password_md5')}),
                ('Personal info', {'fields': ('first_name',
'last_name', 'email')}),
                ('Extra info', {'fields': ('company', 'phone',
'extension', 'position')}),
##                ('Permissions', {'fields': ('is_staff', 'is_active',
'is_superuser', 'user_permissions')}),
                ('Important dates', {'fields': ('last_login',
'date_joined')}),
                ('Groups', {'fields': ('groups',)}),
            ),
            list_display = ('username', 'email', 'first_name',
'last_name', 'is_staff'),
            list_filter = ('is_staff', 'is_superuser'),
            search_fields = ('username', 'first_name', 'last_name',
'email'),
        )

Reply via email to