#34383: Layout error in Admin when using help_text
-------------------------------------+-------------------------------------
Reporter: Antonio Candido | Owner: nobody
Nazareth junior |
Type: Bug | Status: new
Component: Template system | Version: 4.2
Severity: Normal | Resolution:
Keywords: help_text | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Antonio Candido Nazareth junior):
* status: closed => new
* resolution: needsinfo =>
Comment:
Steps to reproduce the error:
Create model new:
app.new.models.py
{{{
from django.db import models
class Favi(models.Model):
faviNumero = models.CharField(max_length=20,help_text='Data incluindo
o Horário do término da viagem')
matricula1 = models.CharField(max_length=50,help_text='Data incluindo
o Horário do término da viagem')
matricula3 = models.CharField(max_length=50,help_text='Data incluindo
o Horário do término da viagem')
matricula2 = models.CharField(max_length=50,help_text='Data incluindo
o Horário do término da viagem')
matricula = models.CharField(max_length=50,help_text='Data incluindo o
Horário do término da viagem')
objetivo = models.TextField(verbose_name='Objetivo',
help_text='DESCRIÇÃO OBJETIVA DO SERVIÇO A SER EXECUTADO')
periodoInicio =
models.DateTimeField(verbose_name='Início',help_text='Data incluindo o
Horário de início da viagem')
periodoTermino =
models.DateTimeField(verbose_name='Término',help_text='Data incluindo o
Horário do término da viagem')
}}}
app.new.admin.py
{{{
from django.contrib import admin
from new.models import Favi
# Register your models here.
class FilterFaviAdmin(admin.ModelAdmin):
fieldsets = [
(None,
{'fields':[('faviNumero','matricula1','matricula3'),'objetivo',('periodoInicio','periodoTermino'),('matricula2','matricula',),]}),
]
admin.site.register(Favi,FilterFaviAdmin)
}}}
Result appears broken layout with help text as image below installed
django pre version 4.2b1
[[Image(https://code.djangoproject.com/attachment/ticket/34383/bug.jpg)]]
works on django version 4.1.7
--
Ticket URL: <https://code.djangoproject.com/ticket/34383#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018709560f35-1451ca88-3bde-4571-8418-a46f0de1355f-000000%40eu-central-1.amazonses.com.