from .models import UserProfileInfo from django.contrib import admin from .models import Campus #admin.site.register(UserProfileInfo) # Register your models here. @admin.register(UserProfileInfo) class userprofile(admin.ModelAdmin): #list display list_display = ['user', 'score', 'last_submission_date', 'intra42_campus'] # search list search_fields = ['score', 'user__username', 'intra42_campus'] @admin.register(Campus) class campus(admin.ModelAdmin): list_display = ['name']