diff options
author | Konstantin L. Metlov <metlov@fti.dn.ua> | 2022-12-21 21:16:18 +0300 |
---|---|---|
committer | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-04-20 02:36:56 +0200 |
commit | dcf7343332ae929d59bc8bc4331109e54ab9ec9a (patch) | |
tree | 3165d17df32d57579f372bccd351f64f554b42f7 /src/lib/Bcfg2/Reporting/migrations/0004_profile_can_be_null.py | |
parent | 57f980db6c2e19c7ac2f031e658cebe253c6d048 (diff) | |
download | bcfg2-dcf7343332ae929d59bc8bc4331109e54ab9ec9a.tar.gz bcfg2-dcf7343332ae929d59bc8bc4331109e54ab9ec9a.tar.bz2 bcfg2-dcf7343332ae929d59bc8bc4331109e54ab9ec9a.zip |
added on_delete=models.CASCADE to all ForeignKey invocations
Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
Diffstat (limited to 'src/lib/Bcfg2/Reporting/migrations/0004_profile_can_be_null.py')
-rw-r--r-- | src/lib/Bcfg2/Reporting/migrations/0004_profile_can_be_null.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Reporting/migrations/0004_profile_can_be_null.py b/src/lib/Bcfg2/Reporting/migrations/0004_profile_can_be_null.py index 5ff11037e..fa66a2815 100644 --- a/src/lib/Bcfg2/Reporting/migrations/0004_profile_can_be_null.py +++ b/src/lib/Bcfg2/Reporting/migrations/0004_profile_can_be_null.py @@ -14,7 +14,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='interaction', name='profile', - field=models.ForeignKey(related_name='+', to='Reporting.Group', null=True), + field=models.ForeignKey(on_delete=models.CASCADE, related_name='+', to='Reporting.Group', null=True), preserve_default=True, ), ] |