manage unlimited tokens in control panel
This commit is contained in:
parent
d5ec23a7fb
commit
0970a6558d
9 changed files with 236 additions and 100 deletions
|
@ -26,4 +26,22 @@ class Migration(migrations.Migration):
|
|||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name="accesspermission",
|
||||
constraint=models.CheckConstraint(
|
||||
check=models.Q(
|
||||
models.Q(
|
||||
("session_token__isnull", True),
|
||||
("user__isnull", True),
|
||||
_negated=True,
|
||||
),
|
||||
models.Q(
|
||||
("session_token__isnull", False),
|
||||
("user__isnull", False),
|
||||
_negated=True,
|
||||
),
|
||||
),
|
||||
name="permission_needs_user_or_session",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue