commonground-api-common 2.6.2__py3-none-any.whl → 2.6.3__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.
- {commonground_api_common-2.6.2.dist-info → commonground_api_common-2.6.3.dist-info}/METADATA +2 -2
- {commonground_api_common-2.6.2.dist-info → commonground_api_common-2.6.3.dist-info}/RECORD +8 -8
- {commonground_api_common-2.6.2.dist-info → commonground_api_common-2.6.3.dist-info}/WHEEL +1 -1
- vng_api_common/__init__.py +1 -1
- vng_api_common/fields.py +4 -8
- vng_api_common/pagination.py +6 -0
- {commonground_api_common-2.6.2.data → commonground_api_common-2.6.3.data}/scripts/generate_schema +0 -0
- {commonground_api_common-2.6.2.dist-info → commonground_api_common-2.6.3.dist-info}/top_level.txt +0 -0
{commonground_api_common-2.6.2.dist-info → commonground_api_common-2.6.3.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: commonground-api-common
|
3
|
-
Version: 2.6.
|
3
|
+
Version: 2.6.3
|
4
4
|
Summary: Commonground API tooling
|
5
5
|
Home-page: https://github.com/maykinmedia/commonground-api-common
|
6
6
|
Author: Maykin Media, VNG-Realisatie
|
@@ -27,7 +27,7 @@ Requires-Dist: djangorestframework_camel_case>=1.2.0
|
|
27
27
|
Requires-Dist: django-rest-framework-condition
|
28
28
|
Requires-Dist: drf-nested-routers>=0.94.1
|
29
29
|
Requires-Dist: drf-spectacular
|
30
|
-
Requires-Dist:
|
30
|
+
Requires-Dist: iso639-lang
|
31
31
|
Requires-Dist: notifications-api-common>=0.3.1
|
32
32
|
Requires-Dist: zgw-consumers>=0.35.1
|
33
33
|
Requires-Dist: oyaml
|
@@ -1,5 +1,5 @@
|
|
1
|
-
commonground_api_common-2.6.
|
2
|
-
vng_api_common/__init__.py,sha256=
|
1
|
+
commonground_api_common-2.6.3.data/scripts/generate_schema,sha256=OpKgzlFc_uzA3TVW_vHSYXAD_feLaCdTEnkWjIcxVzA,280
|
2
|
+
vng_api_common/__init__.py,sha256=uJ6TLK18jhCrL0aclBja7NzlAGLAyZjVpX-gq3d461k,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
|
@@ -12,7 +12,7 @@ vng_api_common/descriptors.py,sha256=RFOqnDn5PEX0-qXb_r4_9wdEvuck5wNxT4tcrP95KaE
|
|
12
12
|
vng_api_common/doc.py,sha256=a4Wm6Y-Va-tBsLwZFjPX_oA4PppkDR4wpIiw9q7NLd4,1167
|
13
13
|
vng_api_common/exception_handling.py,sha256=Z8Si1-GPWaTtsgaFI_zLOvlnLVLM8jqfgFIimX8eo-8,4759
|
14
14
|
vng_api_common/exceptions.py,sha256=7Qk5dlETjoQjZeGRKei4PkeLACLoZOMrMiuyi-yn6Kk,615
|
15
|
-
vng_api_common/fields.py,sha256=
|
15
|
+
vng_api_common/fields.py,sha256=SXY0HB9NiDVmlKdjBDy3b55E4rn-qboiIMBr_eOBuZE,6302
|
16
16
|
vng_api_common/filters.py,sha256=oPivwrES1BQgSUg1jD9hJab7dyoO3VbZDVbbRRiW2SQ,5618
|
17
17
|
vng_api_common/filtersets.py,sha256=CpmuOg6jGKFDwVeCusax-CBI7tv-EuOSBLwewdkLu1Y,1256
|
18
18
|
vng_api_common/generators.py,sha256=88yQN5-vRFUegfzQcsZtlpbtQyn_zZQwvs20OidPK7M,1239
|
@@ -21,7 +21,7 @@ vng_api_common/middleware.py,sha256=2DRw0hPpvUMqwoH1Ze8S7tDB16lmj4Bnd6vN5ijkGM8,
|
|
21
21
|
vng_api_common/mocks.py,sha256=0sELLs-uy2ndu29m5P6FN_p1ehNhYv7IoRayYPs379Y,6200
|
22
22
|
vng_api_common/models.py,sha256=3WgpCWQpkCOrMCtqp7EbnP681II43Sg_cch8ZOm4EcU,1707
|
23
23
|
vng_api_common/oas.py,sha256=ATqqNM7zkDMoK3E-cxNh_c65n6YCrP96KxCFYfkEVK0,2523
|
24
|
-
vng_api_common/pagination.py,sha256=
|
24
|
+
vng_api_common/pagination.py,sha256=U2zojaSHgEIzCEMBzx9r3KLpAujMCdM0ndH3AT6ik1U,734
|
25
25
|
vng_api_common/permissions.py,sha256=ayDxk9Wt8j0yO57FhZ8XaRkPET4lAqd8SSw3m4o3EGs,7562
|
26
26
|
vng_api_common/polymorphism.py,sha256=N-x39pG2unD4N0ZbxFvuhE8ibPaJ0eKeqfvAJW3NnEU,6623
|
27
27
|
vng_api_common/routers.py,sha256=hEnhBulkgMM-7W_lYaykKTgTBj3-avl7DGsR9P7BbTU,1897
|
@@ -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.6.
|
187
|
-
commonground_api_common-2.6.
|
188
|
-
commonground_api_common-2.6.
|
189
|
-
commonground_api_common-2.6.
|
186
|
+
commonground_api_common-2.6.3.dist-info/METADATA,sha256=xAiksqZyWhVPcglOXU0hf8Mh6YvvTDOsbuRGrZdHlAY,6969
|
187
|
+
commonground_api_common-2.6.3.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
188
|
+
commonground_api_common-2.6.3.dist-info/top_level.txt,sha256=vPismc83zPzWXTmlNCCwfDlFV9iygJYxNJW5iDjKTgw,15
|
189
|
+
commonground_api_common-2.6.3.dist-info/RECORD,,
|
vng_api_common/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "2.6.
|
1
|
+
__version__ = "2.6.3"
|
vng_api_common/fields.py
CHANGED
@@ -5,16 +5,12 @@ from django.core.validators import MaxValueValidator, MinValueValidator
|
|
5
5
|
from django.db import models
|
6
6
|
from django.utils.translation import gettext, gettext_lazy as _
|
7
7
|
|
8
|
-
from iso639 import
|
8
|
+
from iso639 import iter_langs
|
9
9
|
|
10
10
|
from .constants import BSN_LENGTH, RSIN_LENGTH, VertrouwelijkheidsAanduiding
|
11
|
-
from .validators import validate_rsin
|
11
|
+
from .validators import validate_bsn, validate_rsin
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
LANGUAGE_CHOICES = tuple(
|
16
|
-
[(code, language.name) for code, language in ISO_639_2B.items()]
|
17
|
-
)
|
13
|
+
LANGUAGE_CHOICES = tuple([(lg.pt2b, lg.name) for lg in iter_langs() if lg.pt2b])
|
18
14
|
|
19
15
|
|
20
16
|
class RSINField(models.CharField):
|
@@ -43,7 +39,7 @@ class RSINField(models.CharField):
|
|
43
39
|
|
44
40
|
|
45
41
|
class BSNField(models.CharField):
|
46
|
-
default_validators = [
|
42
|
+
default_validators = [validate_bsn]
|
47
43
|
description = _("BSN")
|
48
44
|
|
49
45
|
def __init__(self, *args, **kwargs):
|
vng_api_common/pagination.py
CHANGED
@@ -14,5 +14,11 @@ class DynamicPageSizeMixin:
|
|
14
14
|
page_size_query_param = "pageSize"
|
15
15
|
max_page_size = 500
|
16
16
|
|
17
|
+
@property
|
18
|
+
def page_size_query_description(self):
|
19
|
+
return _(
|
20
|
+
"Het aantal resultaten terug te geven per pagina. (default: {page_size})."
|
21
|
+
).format(page_size=self.page_size)
|
22
|
+
|
17
23
|
|
18
24
|
class DynamicPageSizePagination(DynamicPageSizeMixin, PageNumberPagination): ...
|
{commonground_api_common-2.6.2.data → commonground_api_common-2.6.3.data}/scripts/generate_schema
RENAMED
File without changes
|
{commonground_api_common-2.6.2.dist-info → commonground_api_common-2.6.3.dist-info}/top_level.txt
RENAMED
File without changes
|