Opened 16 years ago
Closed 16 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: | no | UI/UX: | no |
Description
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
feature!!
Note:
See TracTickets
for help on using tickets.
Sounds like you are looking for ManyToManyField.symmetrical - although the ticket summary suggests Meta.unique_together.