Hi, I'm trying to use Serpy in my project. I have a very simple userprofile model that I'm testing with Serpy, which I have pasted below. I've also included two images that show the django serializer versus serpy, and how that renders in Swagger. Any idea how to make it play nicely with each other?
class UserProfileSerializer(serpy.Serializer):
class Meta:
model = UserProfile
fields = (
'id',
'user',
'notes',
'created_at',
'updated_at'
)
read_only_fields = ('created_at', 'updated_at')
id = serpy.Field()
user = serpy.StrField()
notes = serpy.StrField()
created_at = serpy.Field()
updated_at = serpy.Field()
Hi, I'm trying to use Serpy in my project. I have a very simple userprofile model that I'm testing with Serpy, which I have pasted below. I've also included two images that show the django serializer versus serpy, and how that renders in Swagger. Any idea how to make it play nicely with each other?