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