Changes between Version 6 and Version 7 of NewAdminChanges


Ignore:
Timestamp:
Oct 18, 2005, 3:26:25 PM (19 years ago)
Author:
rjwittams
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewAdminChanges

    v6 v7  
    2121       
    2222        if not errors:
    23             manipulator.do_html2python(new_data)   # '''WRONG!!'''
     23            manipulator.do_html2python(new_data)   # WRONG!!
    2424            manipulator.save(new_data)
    2525            return HttpResponseRedirect("")
    2626    else:
    2727        # Populate new_data with a "flattened" version of the current data.
    28         new_data = manipulator.original_object.__dict__ # '''WRONG!!'''
     28        new_data = manipulator.original_object.__dict__ # WRONG!!
    2929        errors = {}
    3030       
    31         mash_around_with_the_data_dict_to_make_foreign_keys_work(new_data) # '''WRONG!!'''   
     31        mash_around_with_the_data_dict_to_make_foreign_keys_work(new_data) # WRONG!!   
    3232
    3333    # Populate the FormWrapper.
     
    4949        errors = manipulator.get_validation_errors(new_data)
    5050       
    51         manipulator.do_html2python(new_data) # '''CORRECT!!'''
     51        manipulator.do_html2python(new_data) # CORRECT!!
    5252        if not errors:
    5353            manipulator.save(new_data)
     
    5555    else:
    5656        # Populate new_data with a "flattened" version of the current data.
    57         new_data = manipulator.flatten_data() # '''CORRECT!!'''
     57        new_data = manipulator.flatten_data() # CORRECT!!
    5858        errors = {}
    5959       
Back to Top