Selah/backend/users_app/admin.py

13 lines
311 B
Python

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']