eva/evapp/views.py

12 lines
297 B
Python

from django.shortcuts import render
from django.views.generic.edit import CreateView
from .models import Employee
from .forms import EmployeeForm
# Create your views here.
class EvaFormView(CreateView):
model = Employee
# fields = '__all__' # ['firstname']
form_class = EmployeeForm