2020-12-23 10:42:57 +00:00
|
|
|
from django.shortcuts import render
|
2020-12-23 14:08:27 +00:00
|
|
|
from django.views.generic.edit import CreateView
|
|
|
|
|
|
|
|
from .models import Employee
|
2021-01-04 14:48:32 +00:00
|
|
|
from .forms import EmployeeForm
|
2020-12-23 10:42:57 +00:00
|
|
|
|
|
|
|
# Create your views here.
|
2020-12-23 14:08:27 +00:00
|
|
|
class EvaFormView(CreateView):
|
|
|
|
model = Employee
|
2021-01-04 14:48:32 +00:00
|
|
|
# fields = '__all__' # ['firstname']
|
|
|
|
form_class = EmployeeForm
|