This means anyone using edit_inline="path/to/template" will need to subclass this ( or
TabularBoundRelatedObject or StackedBoundRelatedObject). The functionality may be restored if
it becomes obvious exactly what information should be available to these templates; before it
was kind of random.
So you can do
class MyBoundRelatedObject(TabularBoundRelatedObject):
def template_name(self):
return "path/to/template"
and then edit_inline=MyBoundRelatedObject to duplicate the previous functionality.
git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@986 bcc190cf-cafb-0310-a4f2-bffc1f526a37
M django/conf/urls/admin.py
Modified to allow running the old and new code in parallel. Simply add _old on the end of a change or add form to check against the behaviour of the old admin.
eg http://myadmin/auth/users/1/ -> http://myadmin/auth/users/1_old/
A django/conf/admin_templates/admin_change_form.html
A django/conf/admin_templates/admin_edit_inline_stacked.html
A django/conf/admin_templates/admin_field.html
A django/conf/admin_templates/admin_field_widget.html
A django/conf/admin_templates/admin_edit_inline_tabular.html
These are templates extracted from the admin code that are now used to render the views.
M django/conf/admin_media/js/urlify.js
Change to dashes rather than underscores in slug fields.
M django/core/formfields.py
All of the data conversion from POST to something fields can understand now takes place here.
M django/core/meta/__init__.py
Added InlineRelatedObject and added manipulator methods for data flattening.
Also includes a fix to ordering descending select='' fields.
M django/core/meta/fields.py
Data flattening pushed down into fields.
M django/core/defaulttags.py
Added "include" tag, which is like ssi parsed, but uses normal template resolution rather than absolute paths.
M django/core/validators.py
Allow dashes in slugfields.
A django/templatetags/admin_modify.py
A new set of template tags to provide functionality for the admin.
M django/views/admin/main.py
New view functions for add and change. New helper objects for the admin templates to access ( BoundField, AdminFieldSet)
M tests/runtests.py
Show the details of an error rather than assuming the existance of a database.
git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@740 bcc190cf-cafb-0310-a4f2-bffc1f526a37