Changeset 4944
- Timestamp:
- 04/06/07 21:29:20 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/newforms-admin/django/contrib/admin/templatetags/admin_modify.py
r4569 r4944 20 20 change = context['change'] 21 21 is_popup = context['is_popup'] 22 # TODO: Fix this hack. 23 # save_as = opts.admin.save_as 24 save_as = False 22 25 return { 23 26 'onclick_attrib': (opts.get_ordered_objects() and change … … 25 28 'show_delete_link': (not is_popup and context['has_delete_permission'] 26 29 and (change or context['show_delete'])), 27 'show_save_as_new': not is_popup and change and opts.admin.save_as,28 'show_save_and_add_another': not is_popup and (not opts.admin.save_as or context['add']),30 'show_save_as_new': not is_popup and change and save_as, 31 'show_save_and_add_another': not is_popup and (not save_as or context['add']), 29 32 'show_save_and_continue': not is_popup and context['has_change_permission'], 30 33 'show_save': True
