Skip to content

Not working with django model field verbose_name=lazyt("Title") #110

Description

@Thutmose3

When i'm displaying a form and have set verbose_name=lazyt("Title") like this:

title = models.CharField(max_length=250, null=True, blank=True, unique=False, verbose_name=lazyt("Title"))

And i'm rendering a form:

class ContactForm(forms.ModelForm):
    """Form for the Contact model."""

    class Meta:
        model = Contact
        fields = [
            "contact_type",
            "company_name",
            "name",
        ]

The translations are not working/taken into account, it stays in English

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions