Skip to content

Commit

Permalink
add claer befor creating
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurii-Durden committed Nov 18, 2024
1 parent e27239d commit e282426
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def main() -> QuerySet:
("Scarlett", "Johansson")
]

Genre.objects.all().delete()
Actor.objects.all().delete()

for genre in genres:
Genre.objects.create(name=genre)

Expand Down

0 comments on commit e282426

Please sign in to comment.