Skip to content

Commit

Permalink
SPORT-544: Add custom group field
Browse files Browse the repository at this point in the history
  • Loading branch information
Данил Андреев authored and Данил Андреев committed Jun 28, 2022
1 parent 40c67a2 commit 2ea4a31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adminpage/sport/admin/trainingAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class AutocompleteStudent:


class TrainingFormWithCSV(forms.ModelForm):
group = forms.ModelChoiceField(queryset=Group.objects.filter(semester__id=get_ongoing_semester().id))

attended_students = forms.ModelMultipleChoiceField(
required=False,
queryset=Student.objects.exclude(medical_group__name='Medical checkup not passed'),
Expand Down

0 comments on commit 2ea4a31

Please sign in to comment.