diff options
author | Andrew Godwin | 2022-11-20 11:18:42 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-20 11:18:55 -0700 |
commit | 4b4032be6f984cea34aeb7a52cbfcc38bc389b35 (patch) | |
tree | 1a26fdf489ff7ccfbbc2bcd7a3cd1c60daa9bc57 /users | |
parent | 75e73859688c8893edc2650d12b10e3005d9db76 (diff) | |
download | takahe-4b4032be6f984cea34aeb7a52cbfcc38bc389b35.tar.gz takahe-4b4032be6f984cea34aeb7a52cbfcc38bc389b35.tar.bz2 takahe-4b4032be6f984cea34aeb7a52cbfcc38bc389b35.zip |
Add Sentry error integration option
Diffstat (limited to 'users')
-rw-r--r-- | users/admin.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/users/admin.py b/users/admin.py index 0901307..7a54c52 100644 --- a/users/admin.py +++ b/users/admin.py @@ -44,6 +44,12 @@ class IdentityAdmin(admin.ModelAdmin): def actor_json(self, instance): return instance.to_ap() + def has_add_permission(self, request, obj=None): + """ + Disables admin creation of identities as it will skip steps + """ + return False + @admin.register(Follow) class FollowAdmin(admin.ModelAdmin): |