-
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 #536
base: master
Are you sure you want to change the base?
Solution #536
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.
fix tests
main.py
Outdated
["Scarlett", "Johansson"]] | ||
for genre in list_of_genre: | ||
Genre.objects.create(name=genre) | ||
for actor in list_of_actors: |
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.
for actor in list_of_actors: | |
for first_name, last_name in list_of_actors: |
db/migrations/0001_initial.py
Outdated
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Actor', |
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.
change ' to " , use Black
main.py
Outdated
|
||
|
||
def main() -> QuerySet: | ||
pass | ||
# create | ||
list_of_genre = ["Western", "Action", "Dramma"] |
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.
list_of_genre = ["Western", "Action", "Dramma"] | |
genres = ["Western", "Action", "Dramma"] |
main.py
Outdated
pass | ||
# create | ||
list_of_genre = ["Western", "Action", "Dramma"] | ||
list_of_actors = [["George", "Klooney"], |
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.
list_of_actors = [["George", "Klooney"], | |
actors = [["George", "Klooney"], |
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.
fix tests
main.py
Outdated
["Scarlett", "Johansson"]] | ||
for genre in genres: | ||
Genre.objects.create(name=genre) | ||
for actor in actors: |
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.
for actor in actors: | |
for first_name, last_name in actors: |
main.py
Outdated
for genre in genres: | ||
Genre.objects.create(name=genre) | ||
for actor in actors: | ||
Actor.objects.create(first_name=actor[0], last_name=actor[1]) |
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.
Actor.objects.create(first_name=actor[0], last_name=actor[1]) | |
Actor.objects.create(first_name= first_name, last_name=last_name) |
No description provided.