2021-07-10 11:18:24 +02:00
|
|
|
from .models import UserProfileInfo
|
|
|
|
from django.contrib import admin
|
2022-05-17 15:29:58 +02:00
|
|
|
from .models import Campus
|
2021-07-10 11:18:24 +02:00
|
|
|
|
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
|
2022-03-29 14:19:06 +02:00
|
|
|
list_display = ['user', 'score', 'last_submission_date', 'intra42_campus']
|
2021-10-21 15:02:02 +02:00
|
|
|
# search list
|
2022-05-17 15:29:58 +02:00
|
|
|
search_fields = ['score', 'user__username', 'intra42_campus']
|
|
|
|
|
|
|
|
@admin.register(Campus)
|
|
|
|
class campus(admin.ModelAdmin):
|
|
|
|
list_display = ['name']
|