diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/migrations/0002_auto_20200403_1407.py (renamed from ctrack/organisations/migrations/0002_auto_20200220_1434.py) | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ctrack/organisations/migrations/0002_auto_20200220_1434.py b/ctrack/organisations/migrations/0002_auto_20200403_1407.py index 6d12071..d9f3aed 100644 --- a/ctrack/organisations/migrations/0002_auto_20200220_1434.py +++ b/ctrack/organisations/migrations/0002_auto_20200403_1407.py @@ -1,5 +1,6 @@ -# Generated by Django 2.2.9 on 2020-02-20 14:34 +# Generated by Django 2.2.9 on 2020-04-03 14:07 +import ctrack.organisations.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion @@ -18,7 +19,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='person', name='updated_by', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), + field=models.ForeignKey(on_delete=models.SET(ctrack.organisations.models.Person.get_sentinel_user), to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='organisation', @@ -28,7 +29,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='organisation', name='updated_by', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), + field=models.ForeignKey(on_delete=models.SET(ctrack.organisations.models.Organisation.get_sentinel_user), to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='address', |