Prepare weekly reports
This commit is contained in:
parent
24ac3ce45f
commit
33806967c8
9 changed files with 254 additions and 199 deletions
|
|
@ -17,6 +17,7 @@ class ProfileInline(admin.StackedInline):
|
|||
Inline user profile in user admin
|
||||
"""
|
||||
model = Profile
|
||||
form = ProfileForm
|
||||
can_delete = False
|
||||
|
||||
|
||||
|
|
@ -25,7 +26,6 @@ class CustomUserAdmin(UserAdmin):
|
|||
inlines = (ProfileInline,)
|
||||
list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff')
|
||||
list_select_related = ('profile',)
|
||||
form = ProfileForm
|
||||
|
||||
def get_inline_instances(self, request, obj=None):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue