Opened 6 years ago

Closed 6 years ago

#11996 closed (invalid)

unique over more than one fields

Reported by: robert Owned by: nobody
Component: Database layer (models, ORM) Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


i got conflicted with the following issue...
if user_a has made a friendship with user_b, user_b shouldn't be able to make a friendship
with user_a. so a primary key like: (a,b) -> (b,a) would be needed. it would really be a pleasant

Change History (1)

comment:1 Changed 6 years ago by emulbreh

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Sounds like you are looking for ManyToManyField.symmetrical - although the ticket summary suggests Meta.unique_together.

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