diff --git a/shiftregister/fallback/admin.py b/shiftregister/fallback/admin.py index d5caad2..f616d1a 100644 --- a/shiftregister/fallback/admin.py +++ b/shiftregister/fallback/admin.py @@ -9,13 +9,13 @@ def assign_random_shifts(modeladmin, request, queryset): # Register your models here. -class FallbackAssignmentinline(admin.TabularInline): +class FallbackAssignmentInline(admin.TabularInline): model = FallbackAssignment @admin.register(TeamMember) class TeamMemberAdmin(admin.ModelAdmin): fields = ["name"] list_display = ["name"] - inlines = (FallbackAssignmentinline,) + inlines = (FallbackAssignmentInline,) actions = (assign_random_shifts,)