Opened 18 years ago
Last modified 3 years ago
#2137 new New feature
Add drag and drop ordering for inlines to set order_with_respect_to in admin interface
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | Normal | Keywords: | |
Cc: | russell@…, gary.wilson@…, mathijs@…, sun.void@… | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Pre-MR, adding order_with_respect_to would present an ordering field in the admin interface (or a draggable list of inline objects if dom-drag.js was installed). Post M-R, neither appears. Not sure if this is a problem at the template level or at the model level.
Attachments (1)
Change History (17)
comment:1 by , 18 years ago
Cc: | added |
---|---|
Summary: | order_with_respect_to in M-R has no affect on admin interface → [patch] order_with_respect_to in M-R has no affect on admin interface |
comment:2 by , 18 years ago
Cc: | added |
---|
comment:3 by , 18 years ago
I have a "working" patch for this. It uses dojo for the JavaScript, and only works for one related model. Oh, and only for edit_inline_tabular. ie, it's not ready for contribution by any means.
If you're interested in getting it anyways (there was some interest on the mailing list), please mail me directly.
comment:4 by , 18 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:5 by , 17 years ago
Owner: | changed from | to
---|
Reassigning to xian since I know he's working on the JS stuff for newforms-admin.
comment:7 by , 14 years ago
Cc: | added |
---|---|
Resolution: | duplicate |
Status: | closed → reopened |
This is not merely a dup. of #13, allthough it might be part of that one. Moreover, it has surely not been fixed.
by , 14 years ago
Attachment: | get_ordered_objects_r15376.patch added |
---|
Updated patch for Django SVN r15376
comment:8 by , 14 years ago
Type: | defect → Bug |
---|
comment:9 by , 14 years ago
Severity: | normal → Normal |
---|
comment:10 by , 14 years ago
Easy pickings: | unset |
---|---|
Needs tests: | set |
comment:11 by , 13 years ago
Patch needs improvement: | set |
---|---|
UI/UX: | unset |
Is there an advantage in using nested get_app/get_models(app)
rather than just using get_models()
?
Also the _order
field is marked as editable=False
, so this in itself is insufficient for making it appear.
comment:12 by , 12 years ago
Cc: | added |
---|
comment:13 by , 12 years ago
Status: | reopened → new |
---|
comment:14 by , 9 years ago
Has patch: | unset |
---|---|
Needs tests: | unset |
Patch needs improvement: | unset |
Summary: | [patch] order_with_respect_to in M-R has no affect on admin interface → Add drag and drop ordering for inlines to set order_with_respect_to in admin interface |
Type: | Bug → New feature |
comment:15 by , 3 years ago
Owner: | removed |
---|---|
Status: | new → assigned |
comment:16 by , 3 years ago
Status: | assigned → new |
---|
Hi,
The following patch works for me:
Just ... don't install dom-drag.js or the field will be greyed out :)
I'm working on re-implementing the drag-n-drop functionality[1] and will update this bug or file another when I've done that.
[1] http://groups.google.com/group/django-developers/browse_thread/thread/2af467c292b87067/0b64ccf351cf7542
Russell