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
5fd5d3c9
Commit
5fd5d3c9
authored
Mar 03, 2020
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused code from createrating context
parent
e4b4af18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
bookshare/trades/views.py
bookshare/trades/views.py
+1
-5
No files found.
bookshare/trades/views.py
View file @
5fd5d3c9
...
...
@@ -668,12 +668,8 @@ class CreateRating(LoginRequiredMixin, CreateView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
CreateRating
,
self
).
get_context_data
(
**
kwargs
)
me
=
self
.
request
.
user
.
student
selected_listing
=
self
.
parse_url_for_listing
(
self
.
request
)
winning_student
=
selected_listing
.
winning_bid
.
bidder
context
[
'listing'
]
=
selected_listing
context
[
'listing'
]
=
self
.
parse_url_for_listing
(
self
.
request
)
return
context
def
form_valid
(
self
,
form
):
...
...
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