Mohamed Feddad

25%
Flag icon
the profile admin can be made inline to the default user admin by defining a custom UserAdmin  in profiles/admin.py as follows: from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import Profile from django.contrib.auth.models import User     class UserProfileInline(admin.StackedInline):     model = Profile     class NewUserAdmin(UserAdmin):     inlines = [UserProfileInline]     admin.site.unregister(User) admin.site.register(User, NewUserAdmin)
Mohamed Feddad
Make admin display, a custom interface for a normalized custom django.contrib.auth.models.User
Django Design Patterns and Best Practices: Industry-standard web development techniques and solutions using Python, 2nd Edition
Rate this book
Clear rating
Open Preview