epok-toolkit 1.8.1__py3-none-any.whl → 1.8.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.
Potentially problematic release.
This version of epok-toolkit might be problematic. Click here for more details.
- epok_toolkit/django/__init__.py +2 -0
- epok_toolkit/django/manager.py +5 -5
- {epok_toolkit-1.8.1.dist-info → epok_toolkit-1.8.3.dist-info}/METADATA +1 -1
- {epok_toolkit-1.8.1.dist-info → epok_toolkit-1.8.3.dist-info}/RECORD +7 -6
- {epok_toolkit-1.8.1.dist-info → epok_toolkit-1.8.3.dist-info}/WHEEL +0 -0
- {epok_toolkit-1.8.1.dist-info → epok_toolkit-1.8.3.dist-info}/licenses/LICENSE +0 -0
- {epok_toolkit-1.8.1.dist-info → epok_toolkit-1.8.3.dist-info}/top_level.txt +0 -0
epok_toolkit/django/manager.py
CHANGED
|
@@ -14,11 +14,11 @@ class OptimizedManager(models.Manager):
|
|
|
14
14
|
"""
|
|
15
15
|
Custom manager for optimized querysets.
|
|
16
16
|
"""
|
|
17
|
-
def __init__(self,
|
|
17
|
+
def __init__(self, select_fields_full=None, prefetch_fields_full=None, select_fields_simple=None, prefetch_related_simple=None, *args, **kwargs):
|
|
18
18
|
|
|
19
19
|
super().__init__(*args, **kwargs)
|
|
20
|
-
self.
|
|
21
|
-
self.
|
|
20
|
+
self._select_fields_full = select_fields_full or []
|
|
21
|
+
self._prefetch_fields_full = prefetch_fields_full or []
|
|
22
22
|
self._select_fields_simple = select_fields_simple or []
|
|
23
23
|
self._prefetch_related_simple = prefetch_related_simple or []
|
|
24
24
|
|
|
@@ -27,8 +27,8 @@ class OptimizedManager(models.Manager):
|
|
|
27
27
|
|
|
28
28
|
def full(self):
|
|
29
29
|
return self.get_queryset().optimized(
|
|
30
|
-
select_fields=self.
|
|
31
|
-
prefetch_fields=self.
|
|
30
|
+
select_fields=self._select_fields_full,
|
|
31
|
+
prefetch_fields=self._prefetch_fields_full
|
|
32
32
|
)
|
|
33
33
|
|
|
34
34
|
def simple(self):
|
|
@@ -3,8 +3,9 @@ epok_toolkit/apps.py,sha256=O3q3CcucJOHjlYIS0VgbKsbtim2hpng_FxpKEG_MlWs,486
|
|
|
3
3
|
epok_toolkit/default_settings.py,sha256=hxsRmsAcjk4ar-pRz_X6AI17mJ3192Ljbx-xBuP5rdY,452
|
|
4
4
|
epok_toolkit/cache/__init__.py,sha256=q1-pMbXk-r80a3woyq01E84Tt6kB-UH5u06XoQROaM0,68
|
|
5
5
|
epok_toolkit/cache/cacher.py,sha256=R179_Hrlw1k0tsry9EN0zGl4-Of02L-VzE-xqFuXjaU,4107
|
|
6
|
+
epok_toolkit/django/__init__.py,sha256=Y4V9RImrdma2A2nAIfsk1fLpamcSbBNZ297db3iv6DI,44
|
|
6
7
|
epok_toolkit/django/fields.py,sha256=-ajP5qx-4bt9Qz9yW48gTlinTxD1xWPKOEkslqx8cSM,1089
|
|
7
|
-
epok_toolkit/django/manager.py,sha256=
|
|
8
|
+
epok_toolkit/django/manager.py,sha256=nmgTgvT9fbEiltwxGfqZdphNPbWzSGzkLYRhHVfTXZA,1354
|
|
8
9
|
epok_toolkit/email/__init__.py,sha256=pyJwysyVoq6DuYAG72fulsKFoOuAfjw3aBH7FhmYGHc,35
|
|
9
10
|
epok_toolkit/email/email_async.py,sha256=oC0WowWNUpTpXdxo6hJag5gWUaStxI6VBEArEKQxXko,1521
|
|
10
11
|
epok_toolkit/email/engine.py,sha256=IIifqRI9z76pHdrO5oSSZ25aP5txOTAgrj1JuVVPlMY,2387
|
|
@@ -20,8 +21,8 @@ epok_toolkit/pdf/fuentes/Kollektif-Italic.ttf,sha256=1CXPyw43il9u0tQ_7aRzsEaVtg3
|
|
|
20
21
|
epok_toolkit/pdf/fuentes/Kollektif.ttf,sha256=7wTLkVVNUm1giLjIZcWRUH5r2r3o0GjdKic4V1A-pNQ,51128
|
|
21
22
|
epok_toolkit/pdf/plantillas/Ticket_congrats.png,sha256=OSQhVR0j_nLHE6kSJ33BTR-77HM1fNAfJBe2EuX6wVk,157141
|
|
22
23
|
epok_toolkit/pdf/plantillas/Ticket_congrats2.png,sha256=1RBogBdo-8WSMpD3H73HoLgJtr5EC5oVKfOCIWOxPSo,373605
|
|
23
|
-
epok_toolkit-1.8.
|
|
24
|
-
epok_toolkit-1.8.
|
|
25
|
-
epok_toolkit-1.8.
|
|
26
|
-
epok_toolkit-1.8.
|
|
27
|
-
epok_toolkit-1.8.
|
|
24
|
+
epok_toolkit-1.8.3.dist-info/licenses/LICENSE,sha256=iLDbGXdLSIOT5OsxzHCvtmxHtonE21GiFlS3LNkug4A,128
|
|
25
|
+
epok_toolkit-1.8.3.dist-info/METADATA,sha256=_Z13k2BjbsM_eKB-BhAd5pWrTd00_RsYN9GQ1wfNzEE,786
|
|
26
|
+
epok_toolkit-1.8.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
epok_toolkit-1.8.3.dist-info/top_level.txt,sha256=Wo72AqIFcfWwBGM5F5iGFw9PrO3WBnTSprFZIJk_pNg,13
|
|
28
|
+
epok_toolkit-1.8.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|