mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Add description to special
This commit is contained in:
parent
1e27182bd6
commit
0285b79883
2 changed files with 7 additions and 0 deletions
|
@ -1072,6 +1072,7 @@ class AppointmentView(SecureAdminModelView):
|
||||||
special = BooleanField(
|
special = BooleanField(
|
||||||
"Special",
|
"Special",
|
||||||
default=False,
|
default=False,
|
||||||
|
description="A special appointment should take place in the semester break",
|
||||||
)
|
)
|
||||||
assistant = QuerySelectField(
|
assistant = QuerySelectField(
|
||||||
"Assistant",
|
"Assistant",
|
||||||
|
@ -1080,6 +1081,9 @@ class AppointmentView(SecureAdminModelView):
|
||||||
blank_text=assistantBlankText,
|
blank_text=assistantBlankText,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
column_descriptions = {
|
||||||
|
"special": "A special appointment should take place in the semester break",
|
||||||
|
}
|
||||||
column_filters = (
|
column_filters = (
|
||||||
ExperimentFilter(Appointment, "Experiment"),
|
ExperimentFilter(Appointment, "Experiment"),
|
||||||
AssistantFilter(Appointment, "Assistant"),
|
AssistantFilter(Appointment, "Assistant"),
|
||||||
|
|
|
@ -53,6 +53,9 @@ class AssistantAppointmentView(SecureAssistantModelView):
|
||||||
"date",
|
"date",
|
||||||
]
|
]
|
||||||
form_columns = column_editable_list
|
form_columns = column_editable_list
|
||||||
|
column_descriptions = {
|
||||||
|
"special": "A special appointment should take place in the semester break",
|
||||||
|
}
|
||||||
|
|
||||||
def query_modifier(self, query):
|
def query_modifier(self, query):
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue