diff --git a/input/forms.py b/input/forms.py index 69ffb37..7105931 100644 --- a/input/forms.py +++ b/input/forms.py @@ -1,8 +1,13 @@ from django.db import models -from django.forms import ModelForm +from django.forms import ModelForm, DateField +from django.contrib.admin.widgets import AdminDateWidget + from .models import Project class ProjectForm(ModelForm): + + start = DateField(widget=AdminDateWidget) + class Meta: model = Project fields = '__all__' diff --git a/input/templates/input/project.html b/input/templates/input/project.html index e751efb..d63ec79 100644 --- a/input/templates/input/project.html +++ b/input/templates/input/project.html @@ -1,3 +1,15 @@ +{% load static %} + + + + + + +{{ form.media }} + + + +
{% csrf_token %} {{ form }}