Changes between Version 7 and Version 8 of NewAdminChanges


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

added information about what to change in view functions.

Legend:

Unmodified
Added
Removed
Modified
  • NewAdminChanges

    v7 v8  
    6969So,
    7070
    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.
     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.
    7373 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.
    7474
Back to Top