-
Notifications
You must be signed in to change notification settings - Fork 720
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
base: master
Are you sure you want to change the base?
Solution #727
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 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") |
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.
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.
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
fields = ("id", "show_time", "movie_title", | ||
"cinema_hall_name", "cinema_hall_capacity") |
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.
Better to start every argument from a new line, if you have too many fields
No description provided.