aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJessica Tallon <tsyesika@tsyesika.se>2015-12-20 01:49:28 +0000
committerJessica Tallon <tsyesika@tsyesika.se>2015-12-20 01:54:55 +0000
commitf1db51e4db689a7f68973ce466b01918af1f4e37 (patch)
tree9c6d7f964bb79d0073ba9bbcb0aad2e309877a60
parent564a48e018bcd786aa32b232cb7216be3ef3fb5e (diff)
downloadmediagoblin-f1db51e4db689a7f68973ce466b01918af1f4e37.tar.lz
mediagoblin-f1db51e4db689a7f68973ce466b01918af1f4e37.tar.xz
mediagoblin-f1db51e4db689a7f68973ce466b01918af1f4e37.zip
Fix bug on the OAuth client deauthorization page
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.
-rw-r--r--mediagoblin/edit/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py
index 8e80b3ce..45cc0fb9 100644
--- 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(user=request.user.id)
+ access_tokens = AccessToken.query.filter_by(actor=request.user.id)
applications = [(a.get_requesttoken, a) for a in access_tokens]
return render_to_response(