From 1cf1f2e5430e1946b6f7520e4d339de82a392c21 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 25 Nov 2022 18:32:45 -0700 Subject: Implement user discoverability --- activities/migrations/0001_initial.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'activities') diff --git a/activities/migrations/0001_initial.py b/activities/migrations/0001_initial.py index 19f3026..82a9085 100644 --- a/activities/migrations/0001_initial.py +++ b/activities/migrations/0001_initial.py @@ -83,7 +83,7 @@ class Migration(migrations.Migration): ( "author", models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, + on_delete=django.db.models.deletion.CASCADE, related_name="posts", to="users.identity", ), @@ -257,6 +257,8 @@ class Migration(migrations.Migration): models.CharField( choices=[ ("post", "Post"), + ("post_edited", "Post Edited"), + ("post_deleted", "Post Deleted"), ("interaction", "Interaction"), ("undo_interaction", "Undo Interaction"), ], -- cgit v1.2.3