arrowcounter/counter/forms.py

13 lines
326 B
Python
Raw Normal View History

2018-08-09 16:06:25 +00:00
from django import forms
from django.conf import settings
from .models import ArrowCount
class ArrowCountForm(forms.ModelForm):
date = forms.DateField(widget=forms.DateInput(
format='%Y-%m-%d',
attrs={'class': 'datepicker'}))
class Meta:
model = ArrowCount
fields = ['date', 'count']