-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solution #533
base: master
Are you sure you want to change the base?
Solution #533
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, push your migration files
main.py
Outdated
Genre.objects.create(name="Western") | ||
Genre.objects.create(name="Action") | ||
Genre.objects.create(name="Dramma") | ||
Actor.objects.create(first_name="George", last_name="Klooney") | ||
Actor.objects.create(first_name="Kianu", last_name="Reaves") | ||
Actor.objects.create(first_name="Scarlett", last_name="Keegan") | ||
Actor.objects.create(first_name="Will", last_name="Smith") | ||
Actor.objects.create(first_name="Jaden", last_name="Smith") | ||
Actor.objects.create(first_name="Scarlett", last_name="Johansson") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use for
loop instead of creating each object manually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job
No description provided.