fix(auth_plain): Fix post_install hook
This commit is contained in:
parent
f507cd483d
commit
ee839ce6a3
|
@ -17,7 +17,7 @@ class AuthPlain(AuthPlugin):
|
|||
def install(self):
|
||||
plugins_installed(self.post_install)
|
||||
|
||||
def post_install(self):
|
||||
def post_install(self, **kwargs):
|
||||
if User.query.filter(User.deleted == False).count() == 0:
|
||||
logger.info("Installing admin user")
|
||||
role = Role.query.filter(Role.name == "Superuser").first()
|
||||
|
|
Loading…
Reference in New Issue