Opened 18 years ago

Last modified 10 months ago

#897 new New feature

Bi-Directional ManyToMany — at Version 1

Reported by: anonymous Owned by: nobody
Component: contrib.admin Version:
Severity: Normal Keywords:
Cc: kmike84@…, carsten.fuchs@…, cmawebsite@…, mmitar@…, Hugo Osvaldo Barrera Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Adrian Holovaty)

Allow amnytomany relationships to be defined both ways
E.G

class ItemType(meta.Model):
    name = meta.CharField(maxlength=100)
    descritpion = meta.CharField(maxlength=250)

class PropertyType(meta.Model):
    name = meta.CharField(maxlength=100)
    itemtypes = meta.ManyToManyField(ItemType)

Excellent. When I make a new property type in the admin screens I get a
mutiselect window for item types.

What I want to be able to do however is have this work back the other
way too so that whe I create a new item i can specify what property
types apply.

Thanks

Change History (1)

comment:1 by Adrian Holovaty, 18 years ago

Description: modified (diff)
priority: normallow
Note: See TracTickets for help on using tickets.
Back to Top