Skip to content

Commit

Permalink
Merge branch 'current' into dependabot/pip/pip-dependencies-003d281716
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov committed Mar 6, 2024
2 parents 416ec00 + 70a9074 commit 5ae0b40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/flask_se_practice.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,11 @@ def practice_add_new_report(current_thesis):
"Слишком короткое описание дальнейших планов, напишите подробнее!",
category="error",
)
elif current_thesis.supervisor_id is None:
flash(
'Научный руководитель не найден, выберите научного руководителя в разделе "Выбор темы"!',
category="error",
)
else:
new_report = ThesisReport(
was_done=was_done,
Expand Down

0 comments on commit 5ae0b40

Please sign in to comment.