diff --git a/credentials/apps/badges/admin.py b/credentials/apps/badges/admin.py index 7bb84a8ce..831e495f5 100644 --- a/credentials/apps/badges/admin.py +++ b/credentials/apps/badges/admin.py @@ -56,7 +56,7 @@ def rules(self, obj): for rule in obj.rules.all() ) ), - ) + ) if obj.rules.exists() else _("No rules specified.") class BadgePenaltyInline(admin.TabularInline):