From 12ba2925001e463de7b44d387d093a4c34249d9e Mon Sep 17 00:00:00 2001
From: Dave Page
Date: Tue, 2 Apr 2024 15:35:58 +0100
Subject: [PATCH] Don't show moderation notes when adding a new field.
---
hamnadmin/hamnadmin/register/templates/edit.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hamnadmin/hamnadmin/register/templates/edit.html b/hamnadmin/hamnadmin/register/templates/edit.html
index d39bc20..63fceb2 100644
--- a/hamnadmin/hamnadmin/register/templates/edit.html
+++ b/hamnadmin/hamnadmin/register/templates/edit.html
@@ -33,7 +33,7 @@
{% endif %}{#not new#}
- {% if user.is_superuser %}
+ {% if user.is_superuser and not new %}
Moderator Notes
{% if notes %}
@@ -103,6 +103,7 @@
Edit
+{% endif %}
{% if form.errors %}
Please correct the errors below, and re-submit the form.
--
2.39.5