Skip to content
Snippets Groups Projects
Verified Commit b0dd660b authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Make school term a required field for instructions

parent e2a9ac59
No related branches found
No related tags found
1 merge request!215Draft: Resolve "Instructions can be linked to a document as remarks by the group"
......@@ -387,8 +387,12 @@ class RegisterObjectActionForm(ListActionForm):
class InstructionForm(forms.ModelForm):
layout = Layout("name", "icon", "pdf_file", "groups")
layout = Layout("school_term", "name", "icon", "pdf_file", "groups")
class Meta:
model = Instruction
fields = ["name", "icon", "pdf_file", "groups"]
fields = ["school_term", "name", "icon", "pdf_file", "groups"]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields["school_term"].required = True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment