foerderbarometer/input/forms.py

14 lines
307 B
Python
Raw Normal View History

2020-09-29 07:54:31 +00:00
from django.db import models
2020-09-29 10:16:10 +00:00
from django.forms import ModelForm, DateField
from django.contrib.admin.widgets import AdminDateWidget
from .models import Project
2020-09-29 07:54:31 +00:00
class ProjectForm(ModelForm):
2020-09-29 10:16:10 +00:00
start = DateField(widget=AdminDateWidget)
2020-09-29 07:54:31 +00:00
class Meta:
model = Project
fields = '__all__'