2
0
Fork 0

Fix UpperCamelcase

This commit is contained in:
Luca 2023-05-10 23:37:38 +02:00
parent 1f0a1b3fbf
commit 52241ec1ac
1 changed files with 2 additions and 2 deletions

View File

@ -9,13 +9,13 @@ def assign_random_shifts(modeladmin, request, queryset):
# Register your models here. # Register your models here.
class FallbackAssignmentinline(admin.TabularInline): class FallbackAssignmentInline(admin.TabularInline):
model = FallbackAssignment model = FallbackAssignment
@admin.register(TeamMember) @admin.register(TeamMember)
class TeamMemberAdmin(admin.ModelAdmin): class TeamMemberAdmin(admin.ModelAdmin):
fields = ["name"] fields = ["name"]
list_display = ["name"] list_display = ["name"]
inlines = (FallbackAssignmentinline,) inlines = (FallbackAssignmentInline,)
actions = (assign_random_shifts,) actions = (assign_random_shifts,)