Selah/backend/users_app/admin.py

13 lines
311 B
Python
Raw Normal View History

2023-06-14 10:34:24 +00:00
from django.contrib import admin
from .models import Users
# Register your models here.
@admin.register(Users)
class CustomUserAdmin(admin.ModelAdmin):
list_display = (
# put all other fields you want to be shown in listing
'username',
)
readonly_fields = ['id','date_user_added']