13 lines
417 B
Python
13 lines
417 B
Python
from django.db import models
|
|
from django.contrib.admin.widgets import AdminDateWidget
|
|
from django.forms import ModelForm, DateInput
|
|
|
|
from .models import Employee
|
|
|
|
class EmployeeForm(ModelForm):
|
|
class Meta:
|
|
model = Employee
|
|
fields = '__all__'
|
|
widgets = {'firstdate_employment': DateInput(attrs={'type': 'date'}),
|
|
'firstdate_presence': DateInput(attrs={'type': 'date'}),}
|