PythonistL wrote:
> Robert,
> no manipulator.flatten_data()  is not nescessary for that.

But, it is extremely stupid not to use it, because that will cause your
form to break if you use any of a wide number of features : foreignkeys,
  dates, inline editing, raw_id admin, etc etc. It pretty much works by
accident in your case.

Also, with descriptor fields in magic removal, using item.__dict__ is
going to be completely unsupported, as the data will not be stored
directly in the underlying dict, but will be accessed via descriptors.
Unfortunately I can't come up with a way to forbid access to __dict__.
So doing this will lead to silent failure.

This is another reason not to ever make breaking abstractions ("poke in
the underlying object storage") a recommended part of your API.

Reply via email to