Opened 16 years ago

Closed 16 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: no UI/UX: no

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

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

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

comment:3 by lpetrov, 16 years ago

Resolution: invalid
Status: newclosed

ah, my mistake.

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