From 11c1cd756b5ee25422ee31a185b273e6d8bcd59a Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Sun, 2 Aug 2020 15:15:49 +0200
Subject: [PATCH] Fix empty authentication backends list

---
 aleksis/core/preferences.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/aleksis/core/preferences.py b/aleksis/core/preferences.py
index f0aeb0010..890801b67 100644
--- a/aleksis/core/preferences.py
+++ b/aleksis/core/preferences.py
@@ -192,6 +192,7 @@ class AuthenticationBackends(MultipleChoicePreference):
     name = "backends"
     default = None
     verbose_name = _("Enabled custom authentication backends")
+    field_attribute = {"initial": []}
 
     def get_choices(self):
         return [(b, b) for b in settings.CUSTOM_AUTHENTICATION_BACKENDS]
-- 
GitLab