django-suit icon indicating copy to clipboard operation
django-suit copied to clipboard

help_text is not displayed in date fields

Open ghost opened this issue 8 years ago • 2 comments

Django version: 1.11 Django Suit version: v2 Python version: 2.7.8

Issue: help_text is not displayed in date fields Example (in Russian): expire_date = models.DateField(null=True, blank=True, verbose_name='Активен до', help_text='Если оставить поле пустым, карта будет активна всегда') image

ghost avatar May 10 '17 08:05 ghost

Can confirm this is still not working (Django 1.18; Python 3.7):

suit_date_side

and also:

suit_date_stacked

gamesbook avatar Aug 30 '21 06:08 gamesbook

This is the problem with the widget-AdminSplitDateTime class, which sets the font-size to 0. This can be solved, for example, with your own CSS sheet. In the file templates/admin/base.htm include your own CSS stylesheet:

{% block extrastyle %}
    {{ block.super }}
    <link rel="stylesheet" type="text/css" href="{% static 'css/admin.css' %}" media="all"/>
{% endblock %}

and in admin.css redefine the help-text class specifying the size in pixels:

small.text-help {
    font-size: 11.375px !important;
}

Elger9 avatar Aug 22 '23 21:08 Elger9