Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
AchillesPython committed Nov 26, 2024
1 parent cc1337e commit 1625a10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from db.models import Genre, Actor


def main() -> QuerySet:

genres = ["Western", "Action", "Dramma"]
Expand Down Expand Up @@ -31,4 +32,4 @@ def main() -> QuerySet:
Genre.objects.filter(name="Action").delete()
Actor.objects.filter(first_name="Scarlett").delete()

return Actor.objects.filter(last_name="Smith").all().order_by("first_name")
return Actor.objects.filter(last_name="Smith").all().order_by("first_name")

0 comments on commit 1625a10

Please sign in to comment.