chol
/
eva
forked from tohe/eva
1
0
Fork 0
eva/evapp/views.py

12 lines
297 B
Python
Raw Normal View History

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