Opened 7 years ago

Closed 7 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:



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 7 years ago by lpetrov

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 7 years ago by lpetrov

Summary: verbose_name and ForeignKey/ManyToManyField does not works.verbose_name and ManyToManyField does not works.

comment:3 Changed 7 years ago by lpetrov

Resolution: invalid
Status: newclosed

ah, my mistake.

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