Commit ff9613fd authored by Daniel W Bond's avatar Daniel W Bond

remove success url method and replace with success url attribute in instance where eligible

parent 40ffb967
...@@ -6,7 +6,7 @@ from django.views.generic import View, DetailView, ListView, CreateView,\ ...@@ -6,7 +6,7 @@ from django.views.generic import View, DetailView, ListView, CreateView,\
UpdateView, DeleteView UpdateView, DeleteView
from django.http import Http404, HttpResponseForbidden from django.http import Http404, HttpResponseForbidden
from django.forms.widgets import HiddenInput from django.forms.widgets import HiddenInput
from django.urls import reverse from django.urls import reverse, reverse_lazy
from django.core.files.uploadedfile import SimpleUploadedFile from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.mail import EmailMultiAlternatives from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template from django.template.loader import get_template
...@@ -89,8 +89,7 @@ class DeleteListing(LoginRequiredMixin, SuperuserRequiredMixin, DeleteView): ...@@ -89,8 +89,7 @@ class DeleteListing(LoginRequiredMixin, SuperuserRequiredMixin, DeleteView):
template_name = 'delete_listing.html' template_name = 'delete_listing.html'
login_url = 'login' login_url = 'login'
def get_success_url(self): success_url = reverse_lazy('flag_mod')
return reverse('flag_mod')
# These next three views are tied together... # These next three views are tied together...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment