0004-auth_saml-switch-related-object-foreign-key-to-base-.patch
src/authentic2_auth_saml/migrations/0011_alter_authenticator_foreign_key.py | ||
---|---|---|
1 |
# Generated by Django 2.2.26 on 2022-09-20 14:48 |
|
2 | ||
3 |
import django.db.models.deletion |
|
4 |
from django.db import migrations, models |
|
5 | ||
6 | ||
7 |
class Migration(migrations.Migration): |
|
8 | ||
9 |
dependencies = [ |
|
10 |
('authentic2_auth_saml', '0010_delete_renameattributeaction'), |
|
11 |
] |
|
12 | ||
13 |
operations = [ |
|
14 |
migrations.AlterField( |
|
15 |
model_name='addroleaction', |
|
16 |
name='authenticator', |
|
17 |
field=models.ForeignKey( |
|
18 |
on_delete=django.db.models.deletion.CASCADE, |
|
19 |
related_name='add_role_actions', |
|
20 |
to='authenticators.BaseAuthenticator', |
|
21 |
), |
|
22 |
), |
|
23 |
migrations.AlterField( |
|
24 |
model_name='samlattributelookup', |
|
25 |
name='authenticator', |
|
26 |
field=models.ForeignKey( |
|
27 |
on_delete=django.db.models.deletion.CASCADE, |
|
28 |
related_name='attribute_lookups', |
|
29 |
to='authenticators.BaseAuthenticator', |
|
30 |
), |
|
31 |
), |
|
32 |
migrations.AlterField( |
|
33 |
model_name='setattributeaction', |
|
34 |
name='authenticator', |
|
35 |
field=models.ForeignKey( |
|
36 |
on_delete=django.db.models.deletion.CASCADE, |
|
37 |
related_name='set_attribute_actions', |
|
38 |
to='authenticators.BaseAuthenticator', |
|
39 |
), |
|
40 |
), |
|
41 |
] |
src/authentic2_auth_saml/models.py | ||
---|---|---|
214 | 214 | |
215 | 215 | |
216 | 216 |
class AuthenticatorRelatedObjectBase(models.Model): |
217 |
authenticator = models.ForeignKey(SAMLAuthenticator, on_delete=models.CASCADE)
|
|
217 |
authenticator = models.ForeignKey(BaseAuthenticator, on_delete=models.CASCADE)
|
|
218 | 218 | |
219 | 219 |
class Meta: |
220 | 220 |
abstract = True |
221 |
- |