Changes between Initial Version and Version 1 of Ticket #13223, comment 6


Ignore:
Timestamp:
Feb 9, 2011, 3:44:40 PM (13 years ago)
Author:
Shu Zong Chen

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13223, comment 6

    initial v1  
    1 I've concluded that the error is related to the id_blahinline_set-INITIAL_FORMS being set to anything but 0.  Using firebug to clear this value to 0 and saving (after validation errors) results in a new copy.
     1Unless a new admin URL is created, the only way to get the current add_view form to behave is to replace the values for INITIAL_FORMS and TOTAL_FORMS, as well as the fk_field value.  The INITIAL_FORMS is the cause of the ValueError of the ticket (setting it to 0 makes things happy), and the TOTAL_FORMS/fk_field mess with the form if you try to add any new inlines while you are fixing the validation errors.  The TOTAL_FORMS needs to be set to the old INITIAL_FORMS value, and the fk_field needs to be blank.
Back to Top