diff --git a/konova/management/commands/setup_data.py b/konova/management/commands/setup_data.py index 60b9683d..f0c46d8a 100644 --- a/konova/management/commands/setup_data.py +++ b/konova/management/commands/setup_data.py @@ -7,6 +7,8 @@ Created on: 15.12.20 """ from django.utils.translation import gettext_lazy as _ +from konova.settings import DEFAULT_GROUP, ZB_GROUP, ETS_GROUP + TEST_ORGANISATION_DATA = [ { "name": "Test_Official_1", @@ -24,12 +26,12 @@ TEST_ORGANISATION_DATA = [ GROUPS_DATA = [ { - "name": _("Default"), + "name": DEFAULT_GROUP, }, { - "name": _("Registration office"), + "name": ZB_GROUP, }, { - "name": _("Conservation office"), + "name": ETS_GROUP, }, ] \ No newline at end of file diff --git a/konova/models.py b/konova/models.py index 5bf5b2a8..c7348cbc 100644 --- a/konova/models.py +++ b/konova/models.py @@ -68,3 +68,4 @@ class Geometry(BaseResource): Outsourced geometry model so multiple versions of the same object can refer to the same geometry if it is not changed """ geom = MultiPolygonField(null=True, blank=True) + diff --git a/konova/settings.py b/konova/settings.py index 484821ab..f32ff310 100644 --- a/konova/settings.py +++ b/konova/settings.py @@ -49,3 +49,8 @@ SSO_PUBLIC_KEY = "AGGK7E8eT5X5u2GD38ygGG3GpAefmIldJiiWW7gldRPqCG1CzmUfGdvPSGDbEY DEFAULT_LAT = 50.00 DEFAULT_LON = 7.00 DEFAULT_ZOOM = 8.0 + +# GROUPS +DEFAULT_GROUP = _("Default") +ZB_GROUP = _("Registration office") +ETS_GROUP = _("Conservation office")