Commit bb59d6b8 authored by Luis García's avatar Luis García
Browse files

Fix on post serializer

parent 48b2fc25
......@@ -13,7 +13,7 @@ class CategorySerializer(ModelSerializer):
class PostSerializer(ModelSerializer):
category = AsymetricRelatedField.from_serializer(CategorySerializer)()
owner = AsymetricRelatedField.from_serializer(UserSerializer)()
owner = UserSerializer(read_only=True)
class Meta:
model = Post
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment