1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-19 18:31:16 +00:00

Add description to special

This commit is contained in:
Mo 2022-05-30 04:18:19 +02:00
parent 1e27182bd6
commit 0285b79883
2 changed files with 7 additions and 0 deletions

View file

@ -1072,6 +1072,7 @@ class AppointmentView(SecureAdminModelView):
special = BooleanField(
"Special",
default=False,
description="A special appointment should take place in the semester break",
)
assistant = QuerySelectField(
"Assistant",
@ -1080,6 +1081,9 @@ class AppointmentView(SecureAdminModelView):
blank_text=assistantBlankText,
)
column_descriptions = {
"special": "A special appointment should take place in the semester break",
}
column_filters = (
ExperimentFilter(Appointment, "Experiment"),
AssistantFilter(Appointment, "Assistant"),

View file

@ -53,6 +53,9 @@ class AssistantAppointmentView(SecureAssistantModelView):
"date",
]
form_columns = column_editable_list
column_descriptions = {
"special": "A special appointment should take place in the semester break",
}
def query_modifier(self, query):
return (