Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#451 closed defect (invalid)

There should be OneToManyField support

Reported by: leo@… Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version: 1.1
Severity: normal Keywords: Field
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


We can use OneToOne, ManyToOne, ManyToMany, it will be nicer if we can use OneToMany.

Change History (5)

comment:1 Changed 11 years ago by Stan Seibert <volsung@…>

Isn't this implied by the use of ForeignKey() on the "many" side?

comment:2 Changed 11 years ago by Adrian Holovaty

Resolution: invalid
Status: newclosed

OneToMany is redundant. See ForeignKey, as Stan Seibert said above.

comment:3 Changed 11 years ago by anonymous

Resolution: invalid
Status: closedreopened

I don't think ForeignKey is enough here. Here you are an example: I get two objects both have OneToMany relationship with another thrid object. How could i declare all these three classes?

comment:4 Changed 11 years ago by hugo <gb@…>

Resolution: invalid
Status: reopenedclosed

You would just put in two ForeignKey relations into the third class that point back to the first two classes. But stuff like this should be discussed on the IRC channel or in the mailing list, not in the bugtracking system.

comment:5 Changed 10 years ago by (none)

milestone: Version 1.0

Milestone Version 1.0 deleted

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