projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
564a48e
)
Fix bug on the OAuth client deauthorization page
author
Jessica Tallon
<tsyesika@tsyesika.se>
Sun, 20 Dec 2015 01:49:28 +0000
(
01:49
+0000)
committer
Jessica Tallon
<tsyesika@tsyesika.se>
Sun, 20 Dec 2015 01:54:55 +0000
(
01:54
+0000)
An exception was raised when a user tried to go to the authroization page
this occured when we changed the field names on the models from "user" to
actor. This patch corrects the query and resolves the error.
mediagoblin/edit/views.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/edit/views.py
b/mediagoblin/edit/views.py
index 8e80b3ce215dc96cf7146a76b96279628a90b7fc..45cc0fb94f42dbef8b395eda9dbd379ecacf8da1 100644
(file)
--- a/
mediagoblin/edit/views.py
+++ b/
mediagoblin/edit/views.py
@@
-293,7
+293,7
@@
def deauthorize_applications(request):
_("Application has been deauthorized")
)
- access_tokens = AccessToken.query.filter_by(
use
r=request.user.id)
+ access_tokens = AccessToken.query.filter_by(
acto
r=request.user.id)
applications = [(a.get_requesttoken, a) for a in access_tokens]
return render_to_response(