Fixes #21835: Remove misleading help text from ColorField

This commit is contained in:
Jeremy Stretch
2026-04-07 11:31:49 -04:00
parent d6a1cc5558
commit 4d9b1bdcee

View File

@@ -6,7 +6,6 @@ from django.core.exceptions import ObjectDoesNotExist
from django.db import models
from django.db.models.fields.mixins import FieldCacheMixin
from django.utils.functional import cached_property
from django.utils.safestring import mark_safe
from django.utils.translation import gettext_lazy as _
from .forms.widgets import ColorSelect
@@ -31,7 +30,6 @@ class ColorField(models.CharField):
def formfield(self, **kwargs):
kwargs['widget'] = ColorSelect
kwargs['help_text'] = mark_safe(_('RGB color in hexadecimal. Example: ') + '<code>00ff00</code>')
return super().formfield(**kwargs)