summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-20 11:18:42 -0700
committerAndrew Godwin2022-11-20 11:18:55 -0700
commit4b4032be6f984cea34aeb7a52cbfcc38bc389b35 (patch)
tree1a26fdf489ff7ccfbbc2bcd7a3cd1c60daa9bc57 /activities
parent75e73859688c8893edc2650d12b10e3005d9db76 (diff)
downloadtakahe-4b4032be6f984cea34aeb7a52cbfcc38bc389b35.tar.gz
takahe-4b4032be6f984cea34aeb7a52cbfcc38bc389b35.tar.bz2
takahe-4b4032be6f984cea34aeb7a52cbfcc38bc389b35.zip
Add Sentry error integration option
Diffstat (limited to 'activities')
-rw-r--r--activities/admin.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/activities/admin.py b/activities/admin.py
index e24304d..ba809a8 100644
--- a/activities/admin.py
+++ b/activities/admin.py
@@ -32,6 +32,12 @@ class PostAdmin(admin.ModelAdmin):
def object_json(self, instance):
return instance.to_ap()
+ def has_add_permission(self, request, obj=None):
+ """
+ Disables admin creation of posts as it will skip steps
+ """
+ return False
+
@admin.register(TimelineEvent)
class TimelineEventAdmin(admin.ModelAdmin):