Opened 17 years ago
Closed 13 years ago
#10720 closed New feature (wontfix)
OrderedManyToMany API Implementation
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Normal | Keywords: | Ordered ManyToMany |
| Cc: | gregor@… | Triage Stage: | Design decision needed |
| Has patch: | yes | Needs documentation: | yes |
| Needs tests: | yes | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
In response to my post on django-users, Russ Magee suggested I open a ticket.
http://groups.google.com/group/django-users/browse_frm/thread/2593060c8f3958ed#
This patch uses the standard python list interface to provide a very simple
API for keeping a singly-ordered many-to-many relation field.
More info, plus a simple example and unit-tests here:
Attachments (1)
Change History (8)
by , 17 years ago
| Attachment: | patch_for_django_rev-10131.diff added |
|---|
comment:1 by , 16 years ago
| Needs documentation: | set |
|---|---|
| Needs tests: | set |
comment:2 by , 16 years ago
| Triage Stage: | Unreviewed → Design decision needed |
|---|
comment:3 by , 16 years ago
| Cc: | added |
|---|
I have implemented an ordered m2m relation in a reusable app. Its not exactly the same approach you wanted to take like you described in your blog post but maybe a starting point.
Have a look here: http://pypi.python.org/pypi?:action=display&name=django-sortedm2m&version=0.1.1
Or start hacking and make the API the way you want by branching the code from launchpad:
bzr branch lp:django-sorted-m2m-field
comment:4 by , 15 years ago
| Severity: | → Normal |
|---|---|
| Type: | → New feature |
comment:7 by , 13 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
This can be implemented externally, and the demand isn't big enough to include this in core. This doesn't seem to be something that most projects need.
Closing as wontfix.
Provides OrderedManyToManyField with convenient API