Skip to content

Commit

Permalink
fix usage with non geom layers
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 15, 2024
1 parent 8db5a19 commit bd16c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_oapif/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Meta:

def to_internal_value(self, data):
# TODO: this needs improvement!!!
if "geometry" in data and "crs" not in data["geometry"]:
if "geometry" in data and data["geometry"] is not None and "crs" not in data["geometry"]:
data["geometry"]["crs"] = {
"type": "name",
"properties": {"name": f"urn:ogc:def:crs:EPSG::{Model.crs}"},
Expand Down

0 comments on commit bd16c15

Please sign in to comment.