add teamsnap preferences page.
This commit is contained in:
16
teamsnap/forms.py
Normal file
16
teamsnap/forms.py
Normal 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"}
|
||||
),
|
||||
}
|
||||
Reference in New Issue
Block a user