Changeset 25

Show
Ignore:
Timestamp:
11/19/2006 04:51:17 AM (2 years ago)
Author:
matthew
Message:

Use :method => :post instead of :post => true, as per deprecation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/auto-admin/themes/django/views/edit.rhtml

    r23 r25  
    1919<div class="submit-row"> 
    2020<% unless @object.new_record? %> 
    21 <p class="float-left"><%= link_to 'Delete', { :action => 'delete', :model => params[:model], :id => @object.id }, { :class => 'deletelink', :post => true, :confirm => "Are you sure you want to delete \"#{@object.to_label}\"?" } %></p> 
     21<p class="float-left"><%= link_to 'Delete', { :action => 'delete', :model => params[:model], :id => @object.id }, { :class => 'deletelink', :method => :post, :confirm => "Are you sure you want to delete \"#{@object.to_label}\"?" } %></p> 
    2222<% end %> 
    2323<input type="submit" value="Save and add another" name="_addanother"  />