auth_saml: switch related object foreign key to base model (#53442)
This commit is contained in:
parent
2bd79c0b81
commit
700a5bb196
|
@ -0,0 +1,41 @@
|
|||
# Generated by Django 2.2.26 on 2022-09-20 14:48
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentic2_auth_saml', '0010_delete_renameattributeaction'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='addroleaction',
|
||||
name='authenticator',
|
||||
field=models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name='add_role_actions',
|
||||
to='authenticators.BaseAuthenticator',
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='samlattributelookup',
|
||||
name='authenticator',
|
||||
field=models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name='attribute_lookups',
|
||||
to='authenticators.BaseAuthenticator',
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='setattributeaction',
|
||||
name='authenticator',
|
||||
field=models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name='set_attribute_actions',
|
||||
to='authenticators.BaseAuthenticator',
|
||||
),
|
||||
),
|
||||
]
|
|
@ -214,7 +214,7 @@ class SAMLAuthenticator(BaseAuthenticator):
|
|||
|
||||
|
||||
class AuthenticatorRelatedObjectBase(models.Model):
|
||||
authenticator = models.ForeignKey(SAMLAuthenticator, on_delete=models.CASCADE)
|
||||
authenticator = models.ForeignKey(BaseAuthenticator, on_delete=models.CASCADE)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
|
Loading…
Reference in New Issue