Source code for intranet.apps.eighth.forms.admin.groups

from django import forms

from ....groups.models import Group


[docs]class QuickGroupForm(forms.ModelForm):
[docs] class Meta: model = Group fields = ["name"]
[docs]class GroupForm(forms.ModelForm): student_visible = forms.BooleanField(initial=False, required=False)
[docs] class Meta: model = Group fields = ["name", "student_visible"]
[docs]class UploadGroupForm(forms.Form): file = forms.FileField()