Added search filed for student in weekpreference, refuel stop non null default false, migrations

This commit is contained in:
2025-11-27 11:59:11 +01:00
parent 97b14ae1d7
commit 09584e22fd
4 changed files with 25 additions and 4 deletions

View File

@@ -21,7 +21,8 @@ from datetime import date
class WeekPreferenceAdmin(nested_admin.NestedPolymorphicModelAdmin):
inlines = (TrainingInLIne, HourBuildingInLine, )
list_display = ("week", "student__surname","student__name", "student__course", "course_color", "student_brief_mix",)
list_filter = ("week", "student__course", "student",)
list_filter = ("week", "student__course",)
search_fields = ("student__surname","student__name",)
actions = ("export",)
@admin.action(description="Export Selected Preferences")