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):
|
def install(self):
|
||||||
plugins_installed(self.post_install)
|
plugins_installed(self.post_install)
|
||||||
|
|
||||||
def post_install(self):
|
def post_install(self, **kwargs):
|
||||||
if User.query.filter(User.deleted == False).count() == 0:
|
if User.query.filter(User.deleted == False).count() == 0:
|
||||||
logger.info("Installing admin user")
|
logger.info("Installing admin user")
|
||||||
role = Role.query.filter(Role.name == "Superuser").first()
|
role = Role.query.filter(Role.name == "Superuser").first()
|
||||||
|
|
Loading…
Reference in New Issue