Last active
September 21, 2020 21:17
-
-
Save godfather68/7e25804e7095fb6b8152057e52616970 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import render | |
from django.views.generic import CreateView | |
from .forms import CreateRequestForm | |
from .models import Request, Customer | |
# Create your views here. | |
class CreateRequestView(CreateView): | |
form_class = CreateRequestForm | |
model = Request | |
template_name = "requests/add.html" | |
success_url = reverse_lazy('requests:list') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment