18 lines
341 B
Python
18 lines
341 B
Python
|
|
||
|
|
||
|
from django import forms
|
||
|
from guild.models import PlaySession
|
||
|
|
||
|
|
||
|
class PlaySessionForm(forms.ModelForm):
|
||
|
|
||
|
class Meta:
|
||
|
model = PlaySession
|
||
|
fields = ["date", "characters", "summary"]
|
||
|
# set date wideget to type="date"
|
||
|
widgets = {
|
||
|
"date": forms.DateInput(attrs={"type": "date"}),
|
||
|
|
||
|
}
|
||
|
|