Fixes #21835: Remove misleading help text from ColorField (#21852)

This commit is contained in:
Jeremy Stretch
2026-04-07 16:50:41 -04:00
committed by GitHub
parent 7ff7c6d17e
commit d75583828b

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)