Skip to content

Commit

Permalink
Authentication - part 01 - created custom user added email field
Browse files Browse the repository at this point in the history
  • Loading branch information
Storefront committed Mar 18, 2023
1 parent 92cd64b commit cc2e9a7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@
# Register your models here.
@admin.register(User)
class UserAdmin(BaseUserAdmin):
pass
add_fieldsets = (
(
None,
{
"classes": ("wide",),
"fields": ("username", "password1", "password2", "email", "first_name", "last_name"),
},
),
)

class TagInline(GenericTabularInline):
model = TaggedItem
Expand Down

0 comments on commit cc2e9a7

Please sign in to comment.