Opened 6 years ago

Closed 6 years ago

#11279 closed (invalid)

verbose_name and ManyToManyField does not works.

Reported by: lpetrov Owned by: nobody
Component: Uncategorized Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Example:

class Product(models.Model):
        categories = models.ManyToManyField(Category,verbose_name="xcategories", blank=True,null=True)

Also tried with:

class Category(models.Model):
...
        class Meta:
                verbose_name = "xcategory"
                verbose_name_plural = "xcategories"

In all cases the final ModelForm for Product uses label "Categories:" for the field categories.

Change History (3)

comment:1 Changed 6 years ago by lpetrov

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Seems that ForeignKey works, maybe it was my mistake while u did my tests, but ManyToManyField does not work.

Note: Using latest trunk.

comment:2 Changed 6 years ago by lpetrov

  • Summary changed from verbose_name and ForeignKey/ManyToManyField does not works. to verbose_name and ManyToManyField does not works.

comment:3 Changed 6 years ago by lpetrov

  • Resolution set to invalid
  • Status changed from new to closed

ah, my mistake.

Note: See TracTickets for help on using tickets.
Back to Top