Skip to content

Commit

Permalink
Solution 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bknyrik committed Dec 22, 2024
1 parent 56d1b24 commit d09e18b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@ def main() -> QuerySet:
Actor(first_name="Scarlett", last_name="Johansson")
)
)

Genre.objects.filter(name="Dramma").update(name="Drama")
Actor.objects.filter(last_name="Klooney").update(last_name="Clooney")
Actor.objects.filter(
last_name="Reaves"
).update(first_name="Keanu", last_name="Reeves")

Genre.objects.filter(name="Action").delete()
Actor.objects.filter(first_name="Scarlett").delete()

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

0 comments on commit d09e18b

Please sign in to comment.