Skip to content

Commit

Permalink
Update admin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszM02 authored Nov 11, 2024
1 parent 7900fcb commit 731be43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zapisy/apps/enrollment/courses/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class ClassroomAdmin(admin.ModelAdmin):
def get_view_on_site_url(self, obj):
return obj.get_absolute_url()


class SemesterAdmin(admin.ModelAdmin):

list_display = ('get_name', 'visible')
Expand Down Expand Up @@ -107,6 +108,7 @@ class TermInline(admin.TabularInline):
model = Term
extra = 0


class GuaranteedSpotsInline(admin.StackedInline):
model = GuaranteedSpots
extra = 0
Expand Down

0 comments on commit 731be43

Please sign in to comment.