Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bookshare
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
30
Issues
30
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SRCT
bookshare
Commits
ff9613fd
Commit
ff9613fd
authored
Mar 02, 2020
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove success url method and replace with success url attribute in instance where eligible
parent
40ffb967
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
bookshare/trades/views.py
bookshare/trades/views.py
+2
-3
No files found.
bookshare/trades/views.py
View file @
ff9613fd
...
...
@@ -6,7 +6,7 @@ from django.views.generic import View, DetailView, ListView, CreateView,\
UpdateView
,
DeleteView
from
django.http
import
Http404
,
HttpResponseForbidden
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.mail
import
EmailMultiAlternatives
from
django.template.loader
import
get_template
...
...
@@ -89,8 +89,7 @@ class DeleteListing(LoginRequiredMixin, SuperuserRequiredMixin, DeleteView):
template_name
=
'delete_listing.html'
login_url
=
'login'
def
get_success_url
(
self
):
return
reverse
(
'flag_mod'
)
success_url
=
reverse_lazy
(
'flag_mod'
)
# These next three views are tied together...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment