Skip to content
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 #727

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Solution #727

wants to merge 9 commits into from

Conversation

Den-k0
Copy link

@Den-k0 Den-k0 commented Dec 11, 2024

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a 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 cinema application! 🎬 Your code is well-structured and meets the task requirements effectively. The models, serializers, views, and URL configurations are all set up correctly, ensuring a smooth and efficient application.

While there is a minor issue with the full_name field in the ActorSerializer not being marked as read-only, this does not significantly impact the functionality of your application. It's a good practice to mark computed properties as read-only to prevent any unintended modifications, so consider adding full_name to the read_only_fields tuple in the future.

Keep up the excellent work, and happy coding! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

class ActorSerializer(serializers.ModelSerializer):
class Meta:
model = Actor
fields = ("id", "first_name", "last_name", "full_name")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The full_name field in ActorSerializer should be marked as read-only since it is a property and not a model field. Consider adding full_name to the read_only_fields tuple.

Copy link

@AnyoneClown AnyoneClown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job

Comment on lines +70 to +71
fields = ("id", "show_time", "movie_title",
"cinema_hall_name", "cinema_hall_capacity")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to start every argument from a new line, if you have too many fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants