From 0221ea261fe32b30d441ea10ea39256c0f9b82e3 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 27 Nov 2022 17:16:09 -0700 Subject: Admin tweaks --- stator/admin.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stator') diff --git a/stator/admin.py b/stator/admin.py index 790fc38..7d2b0aa 100644 --- a/stator/admin.py +++ b/stator/admin.py @@ -14,3 +14,6 @@ class DomainAdmin(admin.ModelAdmin): "error", ] ordering = ["-date"] + + def has_add_permission(self, request, obj=None): + return False -- cgit v1.2.3