-
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 #517
base: master
Are you sure you want to change the base?
solution #517
Conversation
main.py
Outdated
( | ||
Actor.objects.filter(last_name="Reaves").update( | ||
first_name="Keanu", last_name="Reeves" | ||
) | ||
) |
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.filter(last_name="Reaves").update( | |
first_name="Keanu", last_name="Reeves" | |
) | |
) | |
Actor.objects.filter(last_name="Reaves").update( | |
first_name="Keanu", last_name="Reeves" | |
) |
You do not need this brackets
db/migrations/0001_initial.py
Outdated
migrations.CreateModel( | ||
name='Actor', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
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
@@ -2,6 +2,36 @@ | |||
|
|||
from django.db.models import QuerySet | |||
|
|||
from db.models import Actor, Genre | |||
|
|||
|
|||
def main() -> QuerySet: |
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.
def main() -> QuerySet: | |
def main() -> QuerySet[Actor]: |
No description provided.