Code


Version 8 (modified by robhudson, 4 years ago) (diff)

--

Things needed for 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).

  • Docs
    • SelectorInlines
  • 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 is 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.

Features on the soc2009/admin-ui branch:

  1. jQuery itself.
  2. Stacked Inline add new inline dynamically.
  3. Selector Inlines (based on Wilson Miner's mockup http://media.wilsonminer.com/images/django/related-objects-stacked.gif)
  4. Tabular Inline ordering. Given an order_field on the TabularInline admin object.
  5. models.fields.OrderField added, subclass of IntegerField with default=0.
  6. django.forms.formsets grew a empty_form method with prefix set to __prefix__ which Javascript replaces with a value when dynamically adding new inlines.