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

Develop #769

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

Develop #769

wants to merge 10 commits into from

Conversation

frezworx
Copy link

No description provided.

Corrected the .env entry and added .venv to the ignore list. This ensures better exclusion of environment files and directories.
Introduced models to represent actors, genres, cinema halls, and movies with their attributes and relationships. These changes lay the foundation for managing cinemas, movie metadata, and associations within the application.
Introduced new serializers for actors, genres, and cinema halls to handle data serialization. Updated the Movie model to include ManyToMany relationships with Actor and Genre, improving data structure and relational mapping. Removed the redundant MovieHall model for clarity and optimization.
Introduced `ActorSerializer`, `GenreSerializer`, and `CinemaHallSerializer` to handle serialization and deserialization for their respective models. Added `create` and `update` methods to each serializer to support instance creation and updates. This enhances flexibility when working with these models in the API.
This migration introduces new models: Actor, Genre, and CinemaHall. Additionally, it establishes many-to-many relationships between Movie and both Actor and Genre. These changes set up the foundational structure for handling cinema-related entities and their interactions.
Replaced function-based views with a scaffold for class-based views using `APIView`. Existing functionality is commented out to enable a step-by-step migration. This change simplifies future expansion and improves code maintainability.
Replaced function-based views with viewsets for better modularity and functionality. Updated URLs to use DRF routers and streamlined endpoint management. Introduced new API views for genres and actors using class-based views.
Replaced function-based views with viewsets for better modularity and functionality. Updated URLs to use DRF routers and streamlined endpoint management. Introduced new API views for genres and actors using class-based views.
Replaced `GenreAPIView` with `GenreList` and added `GenreDetail` for better REST structure. Simplified `ActorDetail` and `ActorList` by using generic views. Updated URL patterns and serializers to align with these changes.
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 task requirements! 🎉 Your code is well-structured and meets most of the task requirements. The only minor issue is the typo in the .gitignore file entry, which should be corrected to .env to properly ignore environment files. Additionally, consider grouping imports using () to enhance code readability. 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! ✨

.gitignore Outdated
@@ -1,9 +1,10 @@
.idea/
.vscode/
*.iml
.env
.envпше

Choose a reason for hiding this comment

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

There seems to be a typo in the .envпше entry. It should likely be .env to correctly ignore environment variable files.

Implemented functionality to update (PUT/PATCH) and delete (DELETE) genres in the `GenreDetail` view. Also fixed a typo in `.gitignore` for `.env` file exclusion.
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.

2 participants