add teamsnap preferences page.

This commit is contained in:
2022-06-02 08:52:38 -05:00
parent e1d47f345f
commit db020ee153
10 changed files with 171 additions and 2 deletions

16
teamsnap/forms.py Normal file
View File

@@ -0,0 +1,16 @@
from django import forms
from django.forms import ModelForm
from .models import Preferences
class PreferencesForm(ModelForm):
class Meta:
model = Preferences
fields = ["user", "managed_team_id"]
widgets = {
"user": forms.HiddenInput(),
"managed_team_id": forms.Select(
choices=(), attrs={"class": "form-control"}
),
}