aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/migrations/0003_auto_20200220_1625.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-02-20 16:34:57 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-02-20 16:34:57 +0000
commit8d2487262dfcffc2d6d20666dd99308b02165e11 (patch)
tree7e6e00d55ad96a1e0595d9ec0b90a02682876b44 /ctrack/organisations/migrations/0003_auto_20200220_1625.py
parent0d9162aee0b28f5117a453064bd86577df35658a (diff)
changed database rules so that deleting Users does not delete Organisation and Person objects
Diffstat (limited to '')
-rw-r--r--ctrack/organisations/migrations/0003_auto_20200220_1625.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/ctrack/organisations/migrations/0003_auto_20200220_1625.py b/ctrack/organisations/migrations/0003_auto_20200220_1625.py
new file mode 100644
index 0000000..65f4478
--- /dev/null
+++ b/ctrack/organisations/migrations/0003_auto_20200220_1625.py
@@ -0,0 +1,20 @@
+# Generated by Django 2.2.9 on 2020-02-20 16:25
+
+import ctrack.organisations.models
+from django.conf import settings
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('organisations', '0002_auto_20200220_1434'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='organisation',
+ name='updated_by',
+ field=models.ForeignKey(on_delete=models.SET(ctrack.organisations.models.Organisation.get_sentinel_user), to=settings.AUTH_USER_MODEL),
+ ),
+ ]