Skip to content

Commit

Permalink
fix: remove cascade from load fixture command (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna authored Oct 28, 2023
1 parent 24687fe commit 8396e2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bd_api/apps/core/management/commands/loadfixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def handle(self, *args, **options) -> str | None:

print("Purge database restrictions")
with connection.cursor() as cursor:
cursor.execute(f"{DB_STATEMENT} auth_permission CASCADE")
cursor.execute(f"{DB_STATEMENT} django_admin_log CASCADE")
cursor.execute(f"{DB_STATEMENT} django_content_type CASCADE")
cursor.execute(f"{DB_STATEMENT} auth_permission")
cursor.execute(f"{DB_STATEMENT} django_admin_log")
cursor.execute(f"{DB_STATEMENT} django_content_type")

print("Load fixtures")
response = super().handle(*args, **options)
Expand Down

0 comments on commit 8396e2e

Please sign in to comment.