Ticket #26 (accepted enhancement)
establish onetomany on unique, non primarykey, index
| Reported by: | guest | Owned by: | ged |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.8 |
| Component: | core | Version: | |
| Keywords: | Cc: |
Description
i would like to establish the one side of an onetomany relationship on a regular unique index (but not a primarykey).
in his answer to my post, gaetan wrote: I should make it possible as SQLAlchemy allows this.
I see two (complementary) options to do that: * provide a "target_columns" arguments, which would list the name of the column(s) you want to target. That would probably be enough for you. * detect that a join argument (primary_join and possibily secondary_join) is present and don't create any column in that case.
i'd really prefer the explicit (first) version.
Change History
Note: See
TracTickets for help on using
tickets.
