maquinaweb-shared-auth 0.2.6__tar.gz → 0.2.8__tar.gz
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.6 → maquinaweb_shared_auth-0.2.8}/PKG-INFO +1 -1
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/maquinaweb_shared_auth.egg-info/PKG-INFO +1 -1
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/pyproject.toml +1 -1
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/models.py +11 -1
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/README.md +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/maquinaweb_shared_auth.egg-info/SOURCES.txt +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/maquinaweb_shared_auth.egg-info/dependency_links.txt +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/maquinaweb_shared_auth.egg-info/requires.txt +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/maquinaweb_shared_auth.egg-info/top_level.txt +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/setup.cfg +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/setup.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/__init__.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/app.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/authentication.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/conf.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/decorators.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/exceptions.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/fields.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/managers.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/middleware.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/mixins.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/permissions.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/router.py +0 -0
- {maquinaweb_shared_auth-0.2.6 → maquinaweb_shared_auth-0.2.8}/shared_auth/serializers.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "maquinaweb-shared-auth"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.8"
|
|
8
8
|
description = "Models read-only para autenticação compartilhada entre projetos Django."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.13"
|
|
@@ -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(
|
|
193
|
+
content_type = models.ForeignKey(DjangoContentType, models.DO_NOTHING)
|
|
184
194
|
codename = models.CharField(max_length=100)
|
|
185
195
|
|
|
186
196
|
class Meta:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|