maquinaweb-shared-auth 0.2.6__py3-none-any.whl → 0.2.7__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maquinaweb-shared-auth
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Models read-only para autenticação compartilhada entre projetos Django.
5
5
  Author-email: Seu Nome <seuemail@dominio.com>
6
6
  License: MIT
@@ -8,11 +8,11 @@ shared_auth/fields.py,sha256=RAcmFh1D_nkbai_7t_OrPZhfhAipesy5kKnEj4LUvvM,1254
8
8
  shared_auth/managers.py,sha256=Oskz863DGG7nFp6ijZfYVWGCG-Inp6PAP0NakX-x71g,6812
9
9
  shared_auth/middleware.py,sha256=xVoSnlndp6-_cgQADASk2ie8th8e_7SN_7q-lfArx9Y,6124
10
10
  shared_auth/mixins.py,sha256=-D-mDmDI_EjMGpUpkMEp1XTlecvUlCRj-Bch9dm9s_I,7400
11
- shared_auth/models.py,sha256=psOT4ZQg8ZjZ7OSjZHcN1ncTRyZTi4qxJuzJIqXzOqM,6980
11
+ shared_auth/models.py,sha256=b1V5XGC0J-aGLTFt_QZrZ7IZx_pXppC5nVAXVcE-FAQ,7247
12
12
  shared_auth/permissions.py,sha256=CTsd0xE_Z-LYNVwU4jOJLWvlcbdRG8mLkLMEnbmkhJA,2665
13
13
  shared_auth/router.py,sha256=zYidJ7j40lQLrhkCtAQAp-rQLhua_UF0X7SDzYRcV5w,668
14
14
  shared_auth/serializers.py,sha256=TDpuZVsOL-6igINSOOOyELWbTUeet4XWRoBkvcMGjW4,4290
15
- maquinaweb_shared_auth-0.2.6.dist-info/METADATA,sha256=82mMASy3fVK-kVsoMSsTC4Grsk9Hd5X08M2Lb7UyBcA,27150
16
- maquinaweb_shared_auth-0.2.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- maquinaweb_shared_auth-0.2.6.dist-info/top_level.txt,sha256=msyYRy02ZV7zz7GR1raUI5LXGFIFn2TIkgkeKZqKufE,12
18
- maquinaweb_shared_auth-0.2.6.dist-info/RECORD,,
15
+ maquinaweb_shared_auth-0.2.7.dist-info/METADATA,sha256=jfRjH3HsmqbjvTdN_iMUxmevMQEcQCc3n4tuqdQDgQ8,27150
16
+ maquinaweb_shared_auth-0.2.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ maquinaweb_shared_auth-0.2.7.dist-info/top_level.txt,sha256=msyYRy02ZV7zz7GR1raUI5LXGFIFn2TIkgkeKZqKufE,12
18
+ maquinaweb_shared_auth-0.2.7.dist-info/RECORD,,
shared_auth/models.py CHANGED
@@ -170,6 +170,16 @@ class SharedUser(AbstractUser):
170
170
  db_table = USER_TABLE
171
171
 
172
172
 
173
+ class DjangoContentType(models.Model):
174
+ app_label = models.CharField(max_length=100)
175
+ model = models.CharField(max_length=100)
176
+
177
+ class Meta:
178
+ managed = False
179
+ db_table = "django_content_type"
180
+ unique_together = (("app_label", "model"),)
181
+
182
+
173
183
  class SharedGroup(models.Model):
174
184
  name = models.CharField(unique=True, max_length=150)
175
185
 
@@ -180,7 +190,7 @@ class SharedGroup(models.Model):
180
190
 
181
191
  class SharedPermission(models.Model):
182
192
  name = models.CharField(max_length=255)
183
- content_type = models.ForeignKey("DjangoContentType", models.DO_NOTHING)
193
+ content_type = models.ForeignKey(DjangoContentType, models.DO_NOTHING)
184
194
  codename = models.CharField(max_length=100)
185
195
 
186
196
  class Meta: