diff --git a/src/objecttypes/api/v1/openapi.yaml b/src/objecttypes/api/v1/openapi.yaml index 108232b9..55577ebd 100644 --- a/src/objecttypes/api/v1/openapi.yaml +++ b/src/objecttypes/api/v1/openapi.yaml @@ -497,7 +497,10 @@ components: description: Last date when the object type was modified hasGeometry: type: boolean - description: Shows whether the related objects have geographic coordinates + description: 'Shows whether the related objects have geographic coordinates. + If the value is ''false'' the related objects are not allowed to have + coordinates and the creation/update of objects with `geometry` property + will raise an error ' versions: type: array items: @@ -639,7 +642,10 @@ components: description: Last date when the object type was modified hasGeometry: type: boolean - description: Shows whether the related objects have geographic coordinates + description: 'Shows whether the related objects have geographic coordinates. + If the value is ''false'' the related objects are not allowed to have + coordinates and the creation/update of objects with `geometry` property + will raise an error ' versions: type: array items: diff --git a/src/objecttypes/api/v2/openapi.yaml b/src/objecttypes/api/v2/openapi.yaml index 93701985..425429ca 100644 --- a/src/objecttypes/api/v2/openapi.yaml +++ b/src/objecttypes/api/v2/openapi.yaml @@ -517,7 +517,10 @@ components: description: Last date when the object type was modified hasGeometry: type: boolean - description: Shows whether the related objects have geographic coordinates + description: 'Shows whether the related objects have geographic coordinates. + If the value is ''false'' the related objects are not allowed to have + coordinates and the creation/update of objects with `geometry` property + will raise an error ' versions: type: array items: @@ -699,7 +702,10 @@ components: description: Last date when the object type was modified hasGeometry: type: boolean - description: Shows whether the related objects have geographic coordinates + description: 'Shows whether the related objects have geographic coordinates. + If the value is ''false'' the related objects are not allowed to have + coordinates and the creation/update of objects with `geometry` property + will raise an error ' versions: type: array items: diff --git a/src/objecttypes/core/migrations/0017_auto_20211126_1736.py b/src/objecttypes/core/migrations/0017_auto_20211126_1736.py new file mode 100644 index 00000000..7ed44f57 --- /dev/null +++ b/src/objecttypes/core/migrations/0017_auto_20211126_1736.py @@ -0,0 +1,22 @@ +# Generated by Django 2.2.24 on 2021-11-26 16:36 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("core", "0016_objecttype_has_geometry"), + ] + + operations = [ + migrations.AlterField( + model_name="objecttype", + name="has_geometry", + field=models.BooleanField( + default=True, + help_text="Shows whether the related objects have geographic coordinates. If the value is 'false' the related objects are not allowed to have coordinates and the creation/update of objects with `geometry` property will raise an error ", + verbose_name="has geometry", + ), + ), + ] diff --git a/src/objecttypes/core/models.py b/src/objecttypes/core/models.py index eeff578f..60476032 100644 --- a/src/objecttypes/core/models.py +++ b/src/objecttypes/core/models.py @@ -109,7 +109,12 @@ class ObjectType(models.Model): has_geometry = models.BooleanField( _("has geometry"), default=True, - help_text=_("Shows whether the related objects have geographic coordinates"), + help_text=_( + "Shows whether the related objects have geographic coordinates. " + "If the value is 'false' the related objects are not allowed to " + "have coordinates and the creation/update of objects with " + "`geometry` property will raise an error " + ), ) def __str__(self):