feat [api]: send id too
This commit is contained in:
parent
532a6cd518
commit
53ada5dcad
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,8 @@ from rest_framework import serializers
|
|||
from .models import Film
|
||||
|
||||
|
||||
class FilmSerializer(serializers.HyperlinkedModelSerializer):
|
||||
class FilmSerializer(serializers.ModelSerializer):
|
||||
|
||||
class Meta:
|
||||
model = Film
|
||||
fields = "__all__" # TODO also send id
|
||||
fields = "__all__" #
|
||||
|
|
Loading…
Reference in a new issue