You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: