13 lines
326 B
Python
13 lines
326 B
Python
|
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']
|