allow int and bool values for overlayfeature extra_data
This commit is contained in:
parent
870c26e335
commit
e16b43bdf2
1 changed files with 3 additions and 2 deletions
|
@ -55,8 +55,9 @@ class DataOverlayFeature(TitledMixin, GeometryMixin, models.Model):
|
||||||
point_icon = models.CharField(max_length=255, blank=True, null=True, verbose_name=_('point icon'),
|
point_icon = models.CharField(max_length=255, blank=True, null=True, verbose_name=_('point icon'),
|
||||||
help_text=_(
|
help_text=_(
|
||||||
'use this material icon to display points, instead of drawing a small circle (only makes sense if the geometry is a point)'))
|
'use this material icon to display points, instead of drawing a small circle (only makes sense if the geometry is a point)'))
|
||||||
extra_data: Optional[dict[str, str]] = SchemaField(schema=dict[str, str], blank=True, null=True, default=None,
|
extra_data: Optional[dict[str, str|int|bool]] = SchemaField(schema=dict[str, str|int|bool], blank=True, null=True,
|
||||||
verbose_name=_('extra data (JSON object)'))
|
default=None,
|
||||||
|
verbose_name=_('extra data (JSON object)'))
|
||||||
|
|
||||||
def to_geojson(self, instance=None) -> dict:
|
def to_geojson(self, instance=None) -> dict:
|
||||||
result = {
|
result = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue