@ -1,8 +1,13 @@ | |||||
from django.db import models | 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 | from .models import Project | ||||
class ProjectForm(ModelForm): | class ProjectForm(ModelForm): | ||||
start = DateField(widget=AdminDateWidget) | |||||
class Meta: | class Meta: | ||||
model = Project | model = Project | ||||
fields = '__all__' | fields = '__all__' |