RelatedFieldWidgetWrapper object has no attribute decompress
|Reported by:||Dylann CORDEL||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I'm still a newbie with Django, Django CMS and even Python... So, I apologize if it's not a "bug" but a misunderstanding of how it works.
The easiest way to reproduce this bug :
- use the FilerImagePlugin in Django CMS to use in a placeHolder
- add an Image and save this placeHolder
- then, try to modify and save again the placeHolder : the error occurs.
I believe that the RelatedFieldWidgetWrapper class should have his own "decompress" function which only do a call of the widget's decompress function like this :
def decompress(self, initial): return self.widget.decompress(initial)
My complete traceback is here : http://dpaste.com/hold/1554861/