add sign up process for backlogger
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
from django.contrib import admin
|
||||
from django.contrib.auth.admin import UserAdmin
|
||||
from django.contrib.auth.models import User
|
||||
from .models import Item
|
||||
|
||||
|
||||
@@ -7,3 +9,14 @@ class ItemAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'category', 'progress_percent', 'favorite', 'created_at']
|
||||
list_filter = ['category', 'favorite']
|
||||
search_fields = ['name']
|
||||
|
||||
|
||||
admin.site.unregister(User)
|
||||
|
||||
|
||||
@admin.register(User)
|
||||
class CustomUserAdmin(UserAdmin):
|
||||
list_display = ['username', 'email', 'is_active', 'date_joined']
|
||||
list_editable = ['is_active']
|
||||
list_filter = ['is_active']
|
||||
ordering = ['date_joined']
|
||||
|
||||
Reference in New Issue
Block a user