We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/djangonauts/django-rest-framework-hstore/blob/master/rest_framework_hstore/serializers.py#L31
An approach like the one used on django-rest-framework-gis might be better for maintainability: https://github.com/djangonauts/django-rest-framework-gis/blob/master/rest_framework_gis/serializers.py#L9
The text was updated successfully, but these errors were encountered:
Or you can simple use property:
@property def field_mapping(self): field_mapping = super(HStoreSerializer, self).field_mapping.copy() field_mapping[HStoreDict] = HStoreField field_mapping[DictionaryField] = HStoreField return field_mapping
Sorry, something went wrong.
Thanks. To support also the VirtualFields is not that few lines of code unfortunately.
No branches or pull requests
https://github.com/djangonauts/django-rest-framework-hstore/blob/master/rest_framework_hstore/serializers.py#L31
An approach like the one used on django-rest-framework-gis might be better for maintainability: https://github.com/djangonauts/django-rest-framework-gis/blob/master/rest_framework_gis/serializers.py#L9
The text was updated successfully, but these errors were encountered: