2
0
Fork 0

Optimize TeamMember admin view

This commit is contained in:
Luca 2023-05-13 23:50:30 +02:00
parent df86aa87ff
commit d3da06a145
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ def reshuffle_shifts(modeladmin, request, queryset):
class FallbackAssignmentInline(admin.TabularInline): class FallbackAssignmentInline(admin.TabularInline):
model = FallbackAssignment model = FallbackAssignment
ordering = ("shift__start_at",) ordering = ("shift__start_at",)
readonly_fields = ("shift",)
@admin.register(TeamMember) @admin.register(TeamMember)