Skip to content

Commit

Permalink
add note about AsGeoJSON issue
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 29, 2023
1 parent 339b2a2 commit 8f8f950
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/django_oapif/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
from django_oapif.urls import oapif_router

from .filters import BboxFilterBackend

# this should be be switched to contrib
# when https://code.djangoproject.com/ticket/34882#ticket is fixed
from .functions import AsGeoJSON


Expand Down
3 changes: 3 additions & 0 deletions src/django_oapif/functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from django.contrib.gis.db.models import functions
from django.db import models

# see https://code.djangoproject.com/ticket/34882#ticket
# and https://github.com/django/django/pull/17320


class AsGeoJSON(functions.AsGeoJSON):
output_field = models.TextField()
Expand Down

0 comments on commit 8f8f950

Please sign in to comment.