-
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
result #1073
base: master
Are you sure you want to change the base?
result #1073
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.
Great job on implementing the task requirements! 🎉 Your code is well-structured and meets the core functionality needed. Just make sure that the actor
and genre
models exist in the db
app to ensure everything runs smoothly. Keep up the great work! 😊
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
('actors', models.ManyToManyField(to='db.actor')), | ||
('genres', models.ManyToManyField(to='db.genre')), |
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.
Ensure that the actor
and genre
models exist in the db
app. The ManyToManyField
references should point to existing models to avoid runtime errors.
migrations.AlterField( | ||
model_name='movie', | ||
name='actors', | ||
field=models.ManyToManyField(related_name='movies', to='db.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.
Ensure that the actor
model exists in the db
app. The related_name
attribute allows reverse querying from actor
to Movie
.
migrations.AlterField( | ||
model_name='movie', | ||
name='genres', | ||
field=models.ManyToManyField(related_name='movies', to='db.genre'), |
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.
Ensure that the genre
model exists in the db
app. The related_name
attribute allows reverse querying from genre
to Movie
.
) -> QuerySet[MovieSession]: | ||
queryset = MovieSession.objects.all() | ||
if session_date: | ||
queryset = queryset.filter(show_time__date=session_date) |
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.
Ensure that session_date
is provided in the correct format (e.g., 'YYYY-MM-DD') to avoid filtering errors.
No description provided.