CARVIEW |
Select Language
HTTP/2 200
server: nginx
content-type: text/html;charset=utf-8
cache-control: must-revalidate
expires: Fri, 01 Jan 1999 00:00:00 GMT
set-cookie: trac_form_token=1210ea20c8636e83de496556; HttpOnly; Path=/; Secure
set-cookie: trac_session=0088971ab221bd5d723d9883; expires=Wed, 22 Oct 2025 23:16:20 GMT; HttpOnly; Path=/; Secure
strict-transport-security: max-age=31536000; includeSubDomains; preload
permissions-policy: interest-cohort=()
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
accept-ranges: bytes
via: 1.1 varnish, 1.1 varnish
date: Thu, 24 Jul 2025 23:16:20 GMT
x-served-by: cache-fra-etou8220103-FRA, cache-bom-vanm7210082-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1753398981.696228,VS0,VE168
vary: Accept-Encoding
soc2009-admin-ui – Django
Back to Top
Django
The web framework for perfectionists with deadlines.
Issues
Original Admin UI proposal: https://groups.google.com/group/django-developers/browse_thread/thread/1edf77c9c8b1101d/4ecda5e4c982c7e1
Updated branch on Github: https://github.com/dgouldin/django/tree/soc2009/admin-ui
In general:
- Commits should be broken up into a series of patches -- 1 for each incremental improvement or feature (e.g. autocomplete, selector inlines, etc).
- All the JS for the admin should be minified, but we need to ship maximized versions too, for ease of editing, and then have a build process do the minification.
- Note: This may be better saved for last.
- Updating the old Javascript to use jQuery is an end goal, but not one required to get admin-ui merged.
- Document where js libs come from for ease of checking on new versions and finding full source.
Suggested individual patches.
- An
OrderingField
as suggested here: https://groups.google.com/group/django-developers/browse_thread/thread/480662576c49edd/3aca77d981804528. - Add
django.forms.formset.empty_form
method. - Admin Inline updates, including
- Dynamically add new inline on page (depends on
empty_form
) - Drag and drop inline re-ordering if
order_field
provided onModelAdmin
class. (depends onOrderingField
) - Selector Inlines (with dynamic adds and drag and drop)
- Dynamically add new inline on page (depends on
- ForeignKey autocomplete
- ManyToMany autocomplete
ForeignKey and ManyToMany autocomplete is being worked on by Rob Hudson on the Github tree: https://github.com/robhudson/django/tree/autocomplete
Current issues:
- ForeignKey autocomplete:
- No docs
- No tests
- If FK is the first field in the admin, the JS focuses on the ID box rather than the text search box.
- Similarly, if you click the text label the focus is on the ID rather than the text search box.
- Changing the ID does not pull the name into the text search box.
- Clicking the magnifier opens a new window to choose an object, selecting an object only updates the ID box, no the text search box.
- Should the ID box be hidden from the user? I can see arguments either way.
- ManyToMany autocomplete:
- No docs
- No tests
- m2m autocomplete doesn't display existing data
- m2m autocomplete in an inline doesn't appear to work at all (doesn't display existing data, results in 404 for ajax search call).
- No "plus" button to add a new m2m item, CSS is hiding it but I haven't tested it if it's unhidden.
- No analog to FK's magnifier popup window search to select an item.
- Some bugs when adding/editing resulting in IDs for m2m objects that don't exist.
Summary of commits on the soc2009/admin-ui branch:
- jQuery itself.
- Stacked Inline add new inline dynamically.
- Selector Inlines (based on Wilson Miner's mockup https://media.wilsonminer.com/images/django/related-objects-stacked.gif)
- Tabular Inline ordering. Given an order_field on the
TabularInline
admin object. - models.fields.OrderField added, subclass of IntegerField with default=0.
- django.forms.formsets grew a
empty_form
method with prefix set to__prefix__
which Javascript replaces with a value when dynamically adding new inlines. - ForeignKeySearchInput widget, which does autocompletion on Foreign key fields.
- ManyToManySearchInput, autocompletion for m2m fields.
Possibly related tickets:
Last modified
16 years ago
Last modified on Dec 13, 2009, 12:42:37 AM
Note:
See TracWiki
for help on using the wiki.
Download in other formats:
Django Links
Learn More
Get Involved
Follow Us
- Hosting by In-kind donors
- Design by Threespot &
© 2005-2025 Django SoftwareFoundation unless otherwise noted. Django is a registered trademark of the Django Software Foundation.