Skip to content

Commit

Permalink
Resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorutkin committed Sep 30, 2024
1 parent 12a748a commit 067288e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cinema/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@
class ActorSerializer(serializers.ModelSerializer):
class Meta:
model = Actor
fields = ['id', 'first_name', 'last_name']
fields = ["id", "first_name", "last_name"]


class GenreSerializer(serializers.ModelSerializer):
class Meta:
model = Genre
fields = ['id', 'name']
fields = ["id", "name"]


class CinemaHallSerializer(serializers.ModelSerializer):
class Meta:
model = CinemaHall
fields = ['id', 'name', 'rows', 'seats_in_row']
fields = ["id", "name", "rows", "seats_in_row"]


class MovieSerializer(serializers.ModelSerializer):
class Meta:
model = Movie
fields = ['id', 'title', 'description', 'duration']
fields = ["id", "title", "description", "duration"]

0 comments on commit 067288e

Please sign in to comment.