From 3bfcd34aa194b804eb14b82793a91e018c463ac7 Mon Sep 17 00:00:00 2001
From: Christoph Berg <myon@debian.org>
Date: Fri, 16 Oct 2026 19:00:17 +0200
Subject: [PATCH v14 10/12] Extend badge title to 255 chars

Daniel pointed out that a reasonable badge title like "Nordic PGDay 2026
Program Committee" is already longer than the 32 chars we catered for
(it's 35). Extend it, we still have moderation to reject overly long
names.
---
 pgweb/contributors/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pgweb/contributors/models.py b/pgweb/contributors/models.py
index bf8f8b62..6c4330a9 100644
--- a/pgweb/contributors/models.py
+++ b/pgweb/contributors/models.py
@@ -107,7 +107,7 @@ class BadgeManager(models.Manager):
 
 class Badge(TwostateModerateModel):
     org = models.ForeignKey(Organisation, null=False, blank=False, verbose_name="Organisation", help_text=ORGANISATION_HINT_TEXT, on_delete=models.CASCADE)
-    badge = models.CharField(max_length=32, null=False, blank=False, unique=True, help_text='Title of this badge, e.g. "PGConf.EU 2025 Speaker".')
+    badge = models.CharField(max_length=255, null=False, blank=False, unique=True, help_text='Title of this badge, e.g. "PGConf.EU 2025 Speaker".')
     slug = models.SlugField(max_length=64, null=False, blank=False, unique=True, help_text='URL-friendly identifier for the badge page. Generated from the title when the badge is created, and kept fixed after that.')
     description = models.TextField(null=True, blank=True, help_text='What did the people do who contributed here?')
     url = models.URLField(max_length=100, null=True, blank=True, verbose_name='Contribution URL', help_text='URL for this contribution, e.g. the conference homepage. (Leave blank when there is no URL.)')
-- 
2.53.0

