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
Hello,
GeoFeatureModelSerializer fails to get bounding box when geo_field points to a SerializerMethodField
GeoFeatureModelSerializer
geo_field
SerializerMethodField
AttributeError: object has no attribute 'extent'
Example:
class PlaceSerializer(GeoFeatureModelSerializer): location = GeometrySerializerMethodField() class Meta: model = Location fields = ["name"] id_field = "pk" geo_field = "location" auto_bbox = True def get_location(self, obj): return obj.location.transform(4326, clone=True)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hello,
GeoFeatureModelSerializer
fails to get bounding box whengeo_field
points to aSerializerMethodField
Example:
The text was updated successfully, but these errors were encountered: