great-components 2.7.0__py3-none-any.whl → 2.7.1__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.
- great_components/mixins.py +6 -1
- {great_components-2.7.0.dist-info → great_components-2.7.1.dist-info}/METADATA +1 -1
- {great_components-2.7.0.dist-info → great_components-2.7.1.dist-info}/RECORD +6 -6
- {great_components-2.7.0.dist-info → great_components-2.7.1.dist-info}/LICENSE +0 -0
- {great_components-2.7.0.dist-info → great_components-2.7.1.dist-info}/WHEEL +0 -0
- {great_components-2.7.0.dist-info → great_components-2.7.1.dist-info}/top_level.txt +0 -0
great_components/mixins.py
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
import logging
|
1
2
|
from django.conf import settings
|
2
3
|
from django.utils import translation
|
3
4
|
import requests
|
4
5
|
from great_components import helpers, forms
|
5
6
|
import uuid
|
6
7
|
|
8
|
+
logger = logging.getLogger(__name__)
|
9
|
+
|
7
10
|
|
8
11
|
class EnableTranslationsMixin:
|
9
12
|
template_name_bidi = None
|
@@ -76,7 +79,8 @@ class GA360Mixin:
|
|
76
79
|
self.ga360_payload['referer_url'] = referer_url
|
77
80
|
|
78
81
|
def __send_to_ga4(self):
|
79
|
-
|
82
|
+
logger.info('Sending to Google Analytics 4 (GA4)')
|
83
|
+
req = requests.post(
|
80
84
|
settings.GA4_API_URL,
|
81
85
|
params={
|
82
86
|
'api_secret': settings.GA4_API_SECRET,
|
@@ -100,6 +104,7 @@ class GA360Mixin:
|
|
100
104
|
}],
|
101
105
|
},
|
102
106
|
)
|
107
|
+
logger.info('Request status code %s', req.status_code)
|
103
108
|
|
104
109
|
def get_context_data(self, *args, **kwargs):
|
105
110
|
user = helpers.get_user(self.request)
|
@@ -7,7 +7,7 @@ great_components/context_processors.py,sha256=YkJPBLrrYnDYUHCpQP1shHommdj5NhgL-a
|
|
7
7
|
great_components/decorators.py,sha256=dgT0IxSN0uTlCSzsAdGU9NsR9hqouk0YPkNNzefRKtE,311
|
8
8
|
great_components/helpers.py,sha256=kOQqv4v2DSY5iKyseWnrMLawoa381GPRMgC7oHN3uCM,6908
|
9
9
|
great_components/middleware.py,sha256=9dVTTbMlTBnwcmDB3CDi6DGQrxiecOwY-Dg7lEOC_OQ,7361
|
10
|
-
great_components/mixins.py,sha256=
|
10
|
+
great_components/mixins.py,sha256=l24JwlL81pePErQ8Ki-pn2yVqwSl9Bxv2pDluZsL5Nk,4455
|
11
11
|
great_components/views.py,sha256=N2F6kvJUMmW9OQCIPcH16KMLlNhD_nrOTz_m0bnExZo,544
|
12
12
|
great_components/forms/__init__.py,sha256=hKKA3w8GBglzmszrK3-z3n8DSRBKcBe9_TLrC52YbLI,153
|
13
13
|
great_components/forms/fields.py,sha256=1N8hqFhVrZRgGIXDHzA8fH85XtI6B3ZyiWkZDXh0LOg,6044
|
@@ -634,8 +634,8 @@ great_components/templates/great_components/header_footer/search.html,sha256=SVU
|
|
634
634
|
great_components/templates/great_components/header_footer/sso_login.html,sha256=IasiMYwuaTDbwpwYa2gLJcEQRIqZcZHGCpeh7Awvw9M,463
|
635
635
|
great_components/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
636
636
|
great_components/templatetags/great_components.py,sha256=O_zVpOvZMHwhCpyq4JmmYu_iGwvaFsIP6lDn_ihtOVs,12173
|
637
|
-
great_components-2.7.
|
638
|
-
great_components-2.7.
|
639
|
-
great_components-2.7.
|
640
|
-
great_components-2.7.
|
641
|
-
great_components-2.7.
|
637
|
+
great_components-2.7.1.dist-info/LICENSE,sha256=q4QjlbTN37umB_xq3DRmS0qvT2tMO_5_-u0WWzYcDQE,1091
|
638
|
+
great_components-2.7.1.dist-info/METADATA,sha256=KZP3XKw_AVPB6B8jkGEWGKgGVxqe03XHE-08kWrNbao,10545
|
639
|
+
great_components-2.7.1.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
|
640
|
+
great_components-2.7.1.dist-info/top_level.txt,sha256=aI2xcjZzpL8o3QuUGQB5YkqHOknVkFwQOSZQiaNqRHU,22
|
641
|
+
great_components-2.7.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|