website/src/accounts/admin.py

12 lines
388 B
Python
Raw Normal View History

2021-07-10 11:18:24 +02:00
from .models import UserProfileInfo
from django.contrib import admin
#admin.site.register(UserProfileInfo)
2021-07-10 11:18:24 +02:00
# Register your models here.
@admin.register(UserProfileInfo)
class userprofile(admin.ModelAdmin):
#list display
2022-03-29 14:19:06 +02:00
list_display = ['user', 'score', 'last_submission_date', 'intra42_campus']
# search list
2022-03-29 14:19:06 +02:00
search_fields = ['score', 'user__username', 'intra42_campus']