maquinaweb-shared-auth 0.2.36__py3-none-any.whl → 0.2.38__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 maquinaweb-shared-auth might be problematic. Click here for more details.
- {maquinaweb_shared_auth-0.2.36.dist-info → maquinaweb_shared_auth-0.2.38.dist-info}/METADATA +1 -1
- {maquinaweb_shared_auth-0.2.36.dist-info → maquinaweb_shared_auth-0.2.38.dist-info}/RECORD +5 -5
- shared_auth/utils.py +10 -3
- {maquinaweb_shared_auth-0.2.36.dist-info → maquinaweb_shared_auth-0.2.38.dist-info}/WHEEL +0 -0
- {maquinaweb_shared_auth-0.2.36.dist-info → maquinaweb_shared_auth-0.2.38.dist-info}/top_level.txt +0 -0
|
@@ -15,9 +15,9 @@ shared_auth/router.py,sha256=JhlDjosViMBmuvYm08vJzKyvrg5P5ECtrU4tKAGsuoU,684
|
|
|
15
15
|
shared_auth/serializers.py,sha256=GCypQOZJvsUHxxYOwrVt0PvV7ePPr3Dqed_BIymfULk,14255
|
|
16
16
|
shared_auth/storage_backend.py,sha256=Eqkjz8aF5UrOpRwYl-J0Td95IObfxnJ8eLQDJVFM3Io,184
|
|
17
17
|
shared_auth/urls.py,sha256=591wWEWJPaHEGkcOZ8yvfgxddRyOcZLgOc0vNtF7XRI,289
|
|
18
|
-
shared_auth/utils.py,sha256=
|
|
18
|
+
shared_auth/utils.py,sha256=E3Ox5FA1D6OHfesZV8Z5D-T4h-zhpHbiHQYfdmRDH8U,4119
|
|
19
19
|
shared_auth/views.py,sha256=2hyLnYSWUscfq-jVcskt-ukzDt4vg6IXeKjRDRu9RXk,1519
|
|
20
|
-
maquinaweb_shared_auth-0.2.
|
|
21
|
-
maquinaweb_shared_auth-0.2.
|
|
22
|
-
maquinaweb_shared_auth-0.2.
|
|
23
|
-
maquinaweb_shared_auth-0.2.
|
|
20
|
+
maquinaweb_shared_auth-0.2.38.dist-info/METADATA,sha256=otqotf7PbIaKkB2lYH8jCGr-fjmKVSOH50Okzr-TE2k,26325
|
|
21
|
+
maquinaweb_shared_auth-0.2.38.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
22
|
+
maquinaweb_shared_auth-0.2.38.dist-info/top_level.txt,sha256=msyYRy02ZV7zz7GR1raUI5LXGFIFn2TIkgkeKZqKufE,12
|
|
23
|
+
maquinaweb_shared_auth-0.2.38.dist-info/RECORD,,
|
shared_auth/utils.py
CHANGED
|
@@ -118,9 +118,16 @@ def get_member_model():
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
def get_organization_serializer():
|
|
121
|
-
|
|
121
|
+
import_path_serializer = get_setting("SHARED_AUTH_ORGANIZATION_SERIALIZER", None)
|
|
122
|
+
|
|
123
|
+
if not import_path_serializer:
|
|
124
|
+
return serializers.ModelSerializer
|
|
122
125
|
|
|
123
126
|
try:
|
|
124
|
-
|
|
125
|
-
|
|
127
|
+
module_path, class_name = import_path_serializer.rsplit(".", 1)
|
|
128
|
+
module = importlib.import_module(module_path)
|
|
129
|
+
serializer_class = getattr(module, class_name)
|
|
130
|
+
return serializer_class
|
|
131
|
+
except Exception as e:
|
|
132
|
+
print(f"Erro ao importar serializer: {import_path_serializer}: {e}")
|
|
126
133
|
return serializers.ModelSerializer
|
|
File without changes
|
{maquinaweb_shared_auth-0.2.36.dist-info → maquinaweb_shared_auth-0.2.38.dist-info}/top_level.txt
RENAMED
|
File without changes
|