Browse Source

add squashmigrations to allowed mgmgt command list

Nick Sweeting 1 year ago
parent
commit
3148d2a3ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      archivebox/manage.py

+ 1 - 1
archivebox/manage.py

@@ -7,7 +7,7 @@ if __name__ == '__main__':
     # versions of ./manage.py commands whenever possible. When that's not possible
     # versions of ./manage.py commands whenever possible. When that's not possible
     # (e.g. makemigrations), you can comment out this check temporarily
     # (e.g. makemigrations), you can comment out this check temporarily
 
 
-    if not ('makemigrations' in sys.argv or 'migrate' in sys.argv or 'startapp' in sys.argv):
+    if not ('makemigrations' in sys.argv or 'migrate' in sys.argv or 'startapp' in sys.argv or 'squashmigrations' in sys.argv):
         print("[X] Don't run ./manage.py directly (unless you are a developer running makemigrations):")
         print("[X] Don't run ./manage.py directly (unless you are a developer running makemigrations):")
         print()
         print()
         print('    Hint: Use these archivebox CLI commands instead of the ./manage.py equivalents:')
         print('    Hint: Use these archivebox CLI commands instead of the ./manage.py equivalents:')