From d90bb179d9875315095c9cbd329855afe0ec8879 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Mon, 27 Aug 2018 08:27:03 -0400 Subject: [PATCH] Fix crash in oauth_callback --- brutaldon/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brutaldon/views.py b/brutaldon/views.py index d2542b8..308e97a 100644 --- a/brutaldon/views.py +++ b/brutaldon/views.py @@ -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']),