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.
This commit is contained in:
Jessica Tallon 2015-12-20 01:49:28 +00:00
parent 564a48e018
commit f1db51e4db

View File

@ -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(