add django-pydantic-field

This commit is contained in:
Laura Klünder 2024-08-17 17:23:34 +02:00
parent 703d39ebd6
commit 6d461e3134
2 changed files with 2 additions and 0 deletions

View file

@ -32,6 +32,7 @@ shapely_logger = logging.getLogger('shapely.geos')
class GeometryField(models.JSONField):
# todo: could this use django-pydantic-field? should it?
default_validators = [validate_geometry]
def __init__(self, geomtype=None, default=None, null=False, blank=False, help_text=None):

View file

@ -4,6 +4,7 @@ django-compressor==4.5.1
csscompressor==0.9.5
django-ninja==1.2.2
pydantic-extra-types==2.5.0
django-pydantic-field==0.3.10
django-filter==23.5
django-environ==0.11.2
shapely==2.0.5