Changes between Version 8 and Version 9 of NewAdminChanges
- Timestamp:
- Oct 18, 2005, 3:32:56 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewAdminChanges
v8 v9 6 6 7 7 For view functions to work properly with all new features, a few changes are in order. 8 9 1. Make sure html2python is called regardless of whether there are errors, but '''after''' validation. 10 2. Make sure you use flatten_data to get your new_data to fill in your forms, NOT just the {{{__dict__}}} of the object you are editing, or an empty dict with an AddManipulator. Otherwise, dates, foreign keys, inline editing and a whole host of other things will NOT work properly, just like they do not work on trunk. 11 3. Make sure you remove any hacks for modifying the data in your view function. This is now done by the fields themselves in flatten_data and instances where it works unexpectedly should be filed as bugs. 8 12 9 13 From: … … 65 69 66 70 }}} 71 72 67 73 Without these changes, the new fixes will not work. It should work about as well as the trunk without these changes. 68 69 So,70 71 1. Make sure html2python is called regardless of whether there are errors, but '''after''' validation.72 2. Make sure you use flatten_data to get your new_data to fill in your forms, NOT just the {{{__dict__}}} of the object you are editing. Otherwise, dates, foreign keys, inline editing and a whole host of other things will NOT work properly, just like they do not work on trunk.73 3. Make sure you remove any hacks for modifying the data in your view function. This is now done by the fields themselves in flatten_data and instances where it works unexpectedly should be filed as bugs.74 74 75 75 == Manipulators ==