Oops, forgot to put .objects after the model to get the actual manager

This commit is contained in:
Danielle McLean 2017-11-03 16:19:26 +11:00
parent ab810a8f94
commit 3d5b537369
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -107,7 +107,7 @@ class IndieView(TemplateView):
if code['uri'] != post.get('redirect_uri'):
return utils.forbid('redirect uri did not match')
user = get_user_model().get(pk=code['uid'])
user = get_user_model().objects.get(pk=code['uid'])
me = urljoin(utils.origin(request), user.url)
# If we got here, it's valid! Yay!
return utils.choose_type(request, {'me': me}, {