|
|
|
@ -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,)
|
|
|
|
|
|
|
|
|
|