website/www/conservancy/apps/assignment/views.py

19 lines
411 B
Python
Raw Normal View History

2021-11-30 05:15:59 +00:00
from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic.edit import CreateView, DeleteView, UpdateView
from .models import Assignment
class AssignmentCreateView(CreateView):
model = Assignment
fields = [
'full_name',
'email',
'place_of_residence',
'repository',
'coverage',
'attestation_of_copyright',
]