Browse Source

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

pull/1/head
Danielle McLean 4 years ago
parent
commit
3d5b537369
Signed by: 00dani GPG Key ID: 5A5D2D1AFF12EEC5
  1. 2
      lemonauth/views/indie.py

2
lemonauth/views/indie.py

@ -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}, {

Loading…
Cancel
Save