From 8d2487262dfcffc2d6d20666dd99308b02165e11 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 20 Feb 2020 16:34:57 +0000 Subject: changed database rules so that deleting Users does not delete Organisation and Person objects --- .../migrations/0004_auto_20200220_1634.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ctrack/organisations/migrations/0004_auto_20200220_1634.py (limited to 'ctrack/organisations/migrations/0004_auto_20200220_1634.py') diff --git a/ctrack/organisations/migrations/0004_auto_20200220_1634.py b/ctrack/organisations/migrations/0004_auto_20200220_1634.py new file mode 100644 index 0000000..297931e --- /dev/null +++ b/ctrack/organisations/migrations/0004_auto_20200220_1634.py @@ -0,0 +1,20 @@ +# Generated by Django 2.2.9 on 2020-02-20 16:34 + +import ctrack.organisations.models +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('organisations', '0003_auto_20200220_1625'), + ] + + operations = [ + migrations.AlterField( + model_name='person', + name='updated_by', + field=models.ForeignKey(on_delete=models.SET(ctrack.organisations.models.Person.get_sentinel_user), to=settings.AUTH_USER_MODEL), + ), + ] -- cgit v1.2.3