WMDE
/
eva
forked from tohe/eva
7
1
Fork 0
eva/evapp/forms.py

13 lines
374 B
Python
Raw Normal View History

from django.db import models
from django.contrib.admin.widgets import AdminDateWidget
from django.forms import ModelForm
from .models import Employee
class EmployeeForm(ModelForm):
class Meta:
model = Employee
fields = '__all__'
widgets = {'firstdate_employment': AdminDateWidget(),
'firstdate_presence': AdminDateWidget(),}