summaryrefslogtreecommitdiff
path: root/stats/admin.py
blob: 16ca5281fa05a0c2bfe428d10516d317f7a54f0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Django Imports
from django.contrib import admin

# Local Imports
from stats.models import TrackLesson


class TrackLessonAdmin(admin.ModelAdmin):
    search_fields = ['user__first_name', 'user__last_name', 'user__username',
                     'course__name', 'lesson__name']
    readonly_fields = ["course", "user", "lesson"]


admin.site.register(TrackLesson, TrackLessonAdmin)