Skip to content
Snippets Groups Projects

WIP: Support group based restriction

Merged Andrea Callia D'Iddio requested to merge support-group-based-restriction into master
4 files
+ 27
4
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 5
0
@@ -15,3 +15,8 @@ class ProjectForm(FlaskForm):
raise ValidationError(
"Student proposer cannot be empty if project is marked as student proposal."
)
def validate_category(self, field):
if field == self.category and field.data == "":
self.category.errors += "Please choose a category for the project."
raise ValidationError("Please choose a category for the project.")
Loading