commonground-api-common 2.5.3__py3-none-any.whl → 2.5.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: commonground-api-common
3
- Version: 2.5.3
3
+ Version: 2.5.5
4
4
  Summary: Commonground API tooling
5
5
  Home-page: https://github.com/maykinmedia/commonground-api-common
6
6
  Author: Maykin Media, VNG-Realisatie
@@ -1,5 +1,5 @@
1
- commonground_api_common-2.5.3.data/scripts/generate_schema,sha256=OpKgzlFc_uzA3TVW_vHSYXAD_feLaCdTEnkWjIcxVzA,280
2
- vng_api_common/__init__.py,sha256=9As6EseYF3Vi8VWUZnZuuTi-kW5fYIv8u6cHK0RidGo,22
1
+ commonground_api_common-2.5.5.data/scripts/generate_schema,sha256=OpKgzlFc_uzA3TVW_vHSYXAD_feLaCdTEnkWjIcxVzA,280
2
+ vng_api_common/__init__.py,sha256=UutRtbE_ZOD7CIHaQC80vf8Bv_vmHDWhwjlCbt3yseM,22
3
3
  vng_api_common/admin.py,sha256=iFtUPGf-ha0I-bXgq8QIFrP23Kzk_H3FlgAjt0U-ip0,259
4
4
  vng_api_common/apps.py,sha256=QQiJXRmjX9Q91oh0P9fvVnHe3NSYd1cEcUUBw0HLBCA,3690
5
5
  vng_api_common/checks.py,sha256=tOyfV7MMLGh4anrd_W30LvJCxiyQ4sFs1mGd9mtrEc0,1175
@@ -30,7 +30,7 @@ vng_api_common/scopes.py,sha256=PGs6CkXorAAdWXGFY1bSy-jmsPn122Njen9aFFOpFIQ,2351
30
30
  vng_api_common/search.py,sha256=yehS6boCOk1JXLCqAMU-B62hWtbTBSf_WKIVGPgp0Mg,1045
31
31
  vng_api_common/serializers.py,sha256=NdrZJqP7p54lRKoKG4mEDS9MqaMcPESIr4dB1tnLaqI,10163
32
32
  vng_api_common/urls.py,sha256=9IWHYLlEIIHNaZ_Zq02qNQ2HJpETb7o-89r7yBM_tQs,270
33
- vng_api_common/utils.py,sha256=zrtpssOA-NcJHhAlxioBiXeY3G2R_uf0l8oWkDD_EiE,8511
33
+ vng_api_common/utils.py,sha256=EHqVjZhtqnbU7YrqgYIBss28Sd19jtnTLNaMWLfj3Zw,8203
34
34
  vng_api_common/validators.py,sha256=ejaFZvFXFaBlqxjA2_07NSHKHlG5pejrfC_GHjwCj6E,12852
35
35
  vng_api_common/version.py,sha256=yJV9_yTM7Qnzg0zGNkJQkN9Uai3I_ZUkcyseJRPRk5I,129
36
36
  vng_api_common/views.py,sha256=pxpI2dl22I9auTYvRJ-Rx-_NHAKgo1F2QwQJF6WIjrE,7603
@@ -106,7 +106,7 @@ vng_api_common/caching/models.py,sha256=RroS9HFiKNXDV59Odh0x8BO8Az8E81v4gwuprF1A
106
106
  vng_api_common/caching/registry.py,sha256=mY1r99x7m0DQ1BN9lZF2zMjFj_oDNq7urxDkOH7-8Yg,6205
107
107
  vng_api_common/caching/signals.py,sha256=78ej5cVan-JpNHKzZNAfs0m2ON_TXKphe8ZKtP-6FVY,4615
108
108
  vng_api_common/conf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
- vng_api_common/conf/api.py,sha256=Lx3Kk7S7mKxeaUr0dm6jbKrEh4WI2gye4i7QxN2x69E,3150
109
+ vng_api_common/conf/api.py,sha256=lKQWJyRjhQugA6UJuJb7BHZfXd2ZnFsYRLmsehDdaQg,3150
110
110
  vng_api_common/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
111
111
  vng_api_common/contrib/setup_configuration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
112
112
  vng_api_common/contrib/setup_configuration/models.py,sha256=1-G0hXeRe-x6GYtsAaQeMGXq0-cwU5LMb8KTQWj-pQk,1201
@@ -183,7 +183,7 @@ vng_api_common/tests/auth.py,sha256=IKDWTEFv4Bign4F70-ibsFcnJqRxEJaXvqaPQJWa1xY,
183
183
  vng_api_common/tests/caching.py,sha256=zfIw5cRRvO9cekHZZKfRqZc8cx5IfJUYNmcH6cuIMg4,624
184
184
  vng_api_common/tests/schema.py,sha256=WDvifDQQiKqIpQijpeQ7rYkFroJmuPuHe7zNhl1Bigk,2293
185
185
  vng_api_common/tests/urls.py,sha256=PFrYzQbBC0TFPMEn3uPhcBG0IQs9JsEPqckicJT1UA4,2159
186
- commonground_api_common-2.5.3.dist-info/METADATA,sha256=Sg3d_Z5Z2g5eL2LcvYqPFQ1QrlhFSUTOy1LzzDZLUEc,6988
187
- commonground_api_common-2.5.3.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
188
- commonground_api_common-2.5.3.dist-info/top_level.txt,sha256=vPismc83zPzWXTmlNCCwfDlFV9iygJYxNJW5iDjKTgw,15
189
- commonground_api_common-2.5.3.dist-info/RECORD,,
186
+ commonground_api_common-2.5.5.dist-info/METADATA,sha256=-ob8zNCm7QtO8IekDfwux_xZx00EdHYWqEKoqa6_sNU,6988
187
+ commonground_api_common-2.5.5.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
188
+ commonground_api_common-2.5.5.dist-info/top_level.txt,sha256=vPismc83zPzWXTmlNCCwfDlFV9iygJYxNJW5iDjKTgw,15
189
+ commonground_api_common-2.5.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.1.0)
2
+ Generator: setuptools (77.0.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1 +1 @@
1
- __version__ = "2.5.3"
1
+ __version__ = "2.5.5"
@@ -3,18 +3,18 @@ __all__ = [
3
3
  "BASE_REST_FRAMEWORK",
4
4
  "BASE_SPECTACULAR_SETTINGS",
5
5
  "COMMON_SPEC",
6
- "LINK_FETCHER",
7
- "GEMMA_URL_TEMPLATE",
6
+ "COMMONGROUND_API_COMMON_GET_DOMAIN",
8
7
  "GEMMA_URL_COMPONENTTYPE",
9
- "GEMMA_URL_INFORMATIEMODEL",
10
8
  "GEMMA_URL_INFORMATIEMODEL_VERSIE",
11
- "REDOC_SETTINGS",
12
- "NOTIFICATIONS_KANAAL",
13
- "NOTIFICATIONS_DISABLED",
9
+ "GEMMA_URL_INFORMATIEMODEL",
10
+ "GEMMA_URL_TEMPLATE",
14
11
  "JWT_LEEWAY",
15
- "SECURITY_DEFINITION_NAME",
16
- "COMMONGROUND_API_COMMON_GET_DOMAIN",
17
12
  "JWT_SPECTACULAR_SETTINGS",
13
+ "LINK_FETCHER",
14
+ "NOTIFICATIONS_DISABLED",
15
+ "NOTIFICATIONS_KANAAL",
16
+ "REDOC_SETTINGS",
17
+ "SECURITY_DEFINITION_NAME",
18
18
  ]
19
19
 
20
20
  API_VERSION = "1.0.0-rc1" # semantic version
vng_api_common/utils.py CHANGED
@@ -5,7 +5,6 @@ from typing import TYPE_CHECKING, List, Optional, Union
5
5
 
6
6
  from django.apps import apps
7
7
  from django.conf import settings
8
- from django.core.exceptions import ImproperlyConfigured
9
8
  from django.db import models
10
9
  from django.http import HttpRequest
11
10
  from django.urls import Resolver404, ResolverMatch, get_resolver, get_script_prefix
@@ -266,12 +265,4 @@ def get_site_domain() -> str:
266
265
  ``COMMONGROUND_API_COMMON_GET_DOMAIN`` setting, which takes a dotted path to a
267
266
  callable taking no arguments.
268
267
  """
269
- if not apps.is_installed("django.contrib.sites"):
270
- raise ImproperlyConfigured(
271
- "'django.contrib.sites' is not installed in INSTALLED_APPS"
272
- )
273
-
274
- from django.contrib.sites.models import Site
275
-
276
- site = Site.objects.get_current()
277
- return site.domain
268
+ return settings.SITE_DOMAIN