2
0
Fork 0

Disable 'reshuffle_shifts' action

This commit is contained in:
Luca 2023-05-13 23:12:08 +02:00
parent f793d73b28
commit df86aa87ff
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class TeamMemberAdmin(admin.ModelAdmin):
readonly_fields = ("id", "url") readonly_fields = ("id", "url")
list_display = ("name", "shift_count") list_display = ("name", "shift_count")
inlines = (FallbackAssignmentInline,) inlines = (FallbackAssignmentInline,)
actions = (assign_random_shifts, clear_shifts, reshuffle_shifts) actions = (assign_random_shifts, clear_shifts) # , reshuffle_shifts)
def shift_count(self, object): def shift_count(self, object):
return object.fallback_shifts.count() return object.fallback_shifts.count()