Disable 'reshuffle_shifts' action

pull/1/head
Luca 2 years ago
parent f793d73b28
commit df86aa87ff

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

Loading…
Cancel
Save