Django 1.3 - Unable to Register UserAdmin User

I am trying to register a custom admin using the memberprofile inline file. Based on the answers from SO and google, my admin.py looks like this:

 class MemberProfileInline(admin.StackedInline): model = MemberProfile fk_name = 'user' class FSUserAdmin(UserAdmin): list_display = ('id', 'username',) inlines = [MemberProfileInline,] admin.site.unregister(User) admin.site.register(User, FSUserAdmin) 

When I load admin, none of the changes defined in FSUserAdmin take place. If I comment

 admin.site.register(User, FSUserAdmin) 

I get an error that the user site is not registered, so I know that it is not registered successfully.

Does anyone have an idea of ​​what I am missing?

update: django.contrib.auth and django.contrib.admin displayed in front of any specific projects in the INSTALLED_APPS list in settings.py

In my project there is the following urls.py

 # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() 
+4
source share
1 answer

Make sure this application appears below contrib.auth in the INSTALLED_APPS setting.

0
source

All Articles