14 lines
307 B
Python
14 lines
307 B
Python
from django.db import models
|
|
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__'
|