mirror of
https://github.com/workhardbekind/workout-challenge.git
synced 2026-07-04 09:23:32 -04:00
first commit
This commit is contained in:
commit
e7f627801f
152 changed files with 35352 additions and 0 deletions
25
src-backend/custom_user/admin.py
Normal file
25
src-backend/custom_user/admin.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from .models import CustomUser, RecalcRequest
|
||||
|
||||
# Register your models here.
|
||||
@admin.register(CustomUser)
|
||||
class CustomUserAdmin(admin.ModelAdmin):
|
||||
"""Admin view of CustomUser"""
|
||||
|
||||
list_display = [
|
||||
"username",
|
||||
"first_name",
|
||||
"last_name",
|
||||
]
|
||||
|
||||
@admin.register(RecalcRequest)
|
||||
class RecalcRequestAdmin(admin.ModelAdmin):
|
||||
"""Admin view of RecalcRequest"""
|
||||
|
||||
list_display = [
|
||||
"user",
|
||||
"goal",
|
||||
"start_datetime",
|
||||
"done",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue