Fix crash in oauth_callback

This commit is contained in:
Jason McBrayer 2018-08-27 08:27:03 -04:00
parent 7f86e79b25
commit d90bb179d9
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ def oauth_callback(request):
account.access_token = access_token
account.save()
except (Account.DoesNotExist, Account.MultipleObjectsReturned):
preferences = Preferences(theme = Theme.objects.get(1))
preferences = Preference(theme = Theme.objects.get(id=1))
account = Account(username=user.acct,
access_token = access_token,
client = Client.objects.get(api_base_id=request.session['instance']),