summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-27 17:16:09 -0700
committerAndrew Godwin2022-11-27 17:16:09 -0700
commit0221ea261fe32b30d441ea10ea39256c0f9b82e3 (patch)
tree69ed72c027d8fac60c952c20beb353e71af23dbd /activities
parent3b079526a2ea78b68555094ca498faea31022759 (diff)
downloadtakahe-0221ea261fe32b30d441ea10ea39256c0f9b82e3.tar.gz
takahe-0221ea261fe32b30d441ea10ea39256c0f9b82e3.tar.bz2
takahe-0221ea261fe32b30d441ea10ea39256c0f9b82e3.zip
Admin tweaks
Diffstat (limited to 'activities')
-rw-r--r--activities/admin.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/activities/admin.py b/activities/admin.py
index ba809a8..8e29d22 100644
--- a/activities/admin.py
+++ b/activities/admin.py
@@ -50,6 +50,9 @@ class TimelineEventAdmin(admin.ModelAdmin):
"subject_post_interaction",
]
+ def has_add_permission(self, request, obj=None):
+ return False
+
@admin.register(FanOut)
class FanOutAdmin(admin.ModelAdmin):
@@ -63,8 +66,14 @@ class FanOutAdmin(admin.ModelAdmin):
for instance in queryset:
instance.transition_perform("new")
+ def has_add_permission(self, request, obj=None):
+ return False
+
@admin.register(PostInteraction)
class PostInteractionAdmin(admin.ModelAdmin):
list_display = ["id", "state", "state_attempted", "type", "identity", "post"]
raw_id_fields = ["identity", "post"]
+
+ def has_add_permission(self, request, obj=None):
+ return False