Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
bookshare
Commits
edc2c80f
Commit
edc2c80f
authored
Jan 08, 2017
by
Daniel W Bond
Browse files
a big bug... unsure how it previously escaped attention
parent
4ae8ef39
Changes
1
Hide whitespace changes
Inline
Side-by-side
bookshare/core/views.py
View file @
edc2c80f
...
...
@@ -27,7 +27,7 @@ class DetailStudent(LoginRequiredMixin, DetailView):
total_exchanges
=
student_listings
.
filter
(
exchanged
=
True
).
count
()
total_proceeds
=
Bid
.
objects
.
filter
(
listing__poster__user
=
self
.
get_object
()).
filter
(
listing__exchanged
=
True
).
aggregate
(
Sum
(
'price'
))[
'price__sum'
]
total_proceeds
=
Bid
.
objects
.
filter
(
listing__poster__user
=
self
.
get_object
()
.
user
).
filter
(
listing__exchanged
=
True
).
aggregate
(
Sum
(
'price'
))[
'price__sum'
]
student_ratings
=
Rating
.
objects
.
filter
(
listing__poster
=
self
.
get_object
())
if
student_ratings
:
...
...
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