forked from 00dani/lemoncurry
Oops, forgot to put .objects after the model to get the actual manager
This commit is contained in:
parent
ab810a8f94
commit
3d5b537369
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class IndieView(TemplateView):
|
||||||
if code['uri'] != post.get('redirect_uri'):
|
if code['uri'] != post.get('redirect_uri'):
|
||||||
return utils.forbid('redirect uri did not match')
|
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)
|
me = urljoin(utils.origin(request), user.url)
|
||||||
# If we got here, it's valid! Yay!
|
# If we got here, it's valid! Yay!
|
||||||
return utils.choose_type(request, {'me': me}, {
|
return utils.choose_type(request, {'me': me}, {
|
||||||
|
|
Loading…
Reference in a new issue