mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
invoke task for celan_settings
This commit is contained in:
10
tasks.py
10
tasks.py
@ -137,6 +137,14 @@ def rebuild(c):
|
||||
|
||||
manage(c, "rebuild_models")
|
||||
|
||||
@task
|
||||
def clean_settings(c):
|
||||
"""
|
||||
Clean the setting tables of old settings
|
||||
"""
|
||||
|
||||
manage(c, "clean_settings")
|
||||
|
||||
@task
|
||||
def migrate(c):
|
||||
"""
|
||||
@ -167,7 +175,7 @@ def static(c):
|
||||
manage(c, "collectstatic --no-input")
|
||||
|
||||
|
||||
@task(pre=[install, migrate, static])
|
||||
@task(pre=[install, migrate, static, clean_settings])
|
||||
def update(c):
|
||||
"""
|
||||
Update InvenTree installation.
|
||||
|
Reference in New Issue
Block a user