WMDE
/
eva
forked from tohe/eva
7
1
Fork 0
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