=== modified file 'django/contrib/admin/templatetags/admin_modify.py'
|
|
|
20 | 20 | opts = context['opts'] |
21 | 21 | change = context['change'] |
22 | 22 | is_popup = context['is_popup'] |
23 | | # TODO: Fix this hack. |
24 | | # save_as = opts.admin.save_as |
25 | | save_as = False |
| 23 | save_as = context['save_as'] |
26 | 24 | return { |
27 | 25 | 'onclick_attrib': (opts.get_ordered_objects() and change |
28 | 26 | and 'onclick="submitOrderForm();"' or ''), |
=== modified file 'django/contrib/admin/views/main.py'
|
|
|
129 | 129 | 'opts': opts, |
130 | 130 | 'content_type_id': ContentType.objects.get_for_model(model).id, |
131 | 131 | 'save_on_top': model_admin.save_on_top, |
| 132 | 'save_as': model_admin.save_as, |
132 | 133 | } |
133 | 134 | context.update(extra_context) |
134 | 135 | return render_to_response([ |