Skip to content

Commit

Permalink
fix: allow to override login_form in custom site
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Apr 19, 2023
1 parent 71689f1 commit 8a3b97d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unfold/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def __init__(self, name="admin"):

super().__init__(name)

self.login_form = AuthenticationForm
if self.login_form is None:
self.login_form = AuthenticationForm

if get_config(self.settings_name)["SITE_TITLE"]:
self.site_title = get_config(self.settings_name)["SITE_TITLE"]

Expand Down

0 comments on commit 8a3b97d

Please sign in to comment.