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']),