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 #397

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

Develop #397

wants to merge 4 commits into from

Conversation

kostomeister
Copy link

No description provided.

@@ -1,24 +1,104 @@
from rest_framework import serializers

from cinema.models import Movie
from cinema.models import Movie, Actor, CinemaHall, Genre


class MovieSerializer(serializers.Serializer):
id = serializers.IntegerField(read_only=True)
title = serializers.CharField(max_length=255)
description = serializers.CharField()

Choose a reason for hiding this comment

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

mb its better to use TextField if u dont specify max_length

Copy link
Author

Choose a reason for hiding this comment

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

image
is TextField in serializers?

cinema/views.py Outdated
Comment on lines 1 to 6
from rest_framework.request import Request
from rest_framework.response import Response
from rest_framework import status
from rest_framework import status, mixins, generics, viewsets

from django.shortcuts import get_object_or_404
from rest_framework.views import APIView

Choose a reason for hiding this comment

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

you need to follow the sequence of imports

Copy link

@LiudmylaKulinchenko LiudmylaKulinchenko left a comment

Choose a reason for hiding this comment

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

Well done ❄

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