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