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
|
|
|
|
|
2020-09-29 09:29:15 +00:00
|
|
|
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__'
|