Changes between Version 6 and Version 7 of NewAdminChanges
- Timestamp:
- Oct 18, 2005, 3:26:25 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewAdminChanges
v6 v7 21 21 22 22 if not errors: 23 manipulator.do_html2python(new_data) # '''WRONG!!'''23 manipulator.do_html2python(new_data) # WRONG!! 24 24 manipulator.save(new_data) 25 25 return HttpResponseRedirect("") 26 26 else: 27 27 # 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!! 29 29 errors = {} 30 30 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!! 32 32 33 33 # Populate the FormWrapper. … … 49 49 errors = manipulator.get_validation_errors(new_data) 50 50 51 manipulator.do_html2python(new_data) # '''CORRECT!!'''51 manipulator.do_html2python(new_data) # CORRECT!! 52 52 if not errors: 53 53 manipulator.save(new_data) … … 55 55 else: 56 56 # 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!! 58 58 errors = {} 59 59