myyang / django-pb-model

Protobuf mixin for django model
Other
112 stars 22 forks source link

Custom field serializers #1

Closed jfyne closed 6 years ago

jfyne commented 6 years ago

Hi,

Thanks for the package its great!

I needed to support a JSONField in django so I have added the ability to define custom field serializers to define custom behavior to go between protobuf and the django field. I added an example of how this works in the readme.

I also refactored the code slightly so that the DateTimeField implementation also leverages the custom field behavior.

Thanks again

myyang commented 6 years ago

Cool, Thanks!