getDecodableAttributes error, when using property() on Django model.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

getDecodableAttributes error, when using property() on Django model.

Martin Andersen-2
Hi all

I get the following error, when trying to save data to my backend.

http://pastebin.com/1hfnReHg

My model:

def getDays(self):
                return pyamf.flex.ArrayCollection(self.day_set.all())

def setDays(self, value):
                pass

days = property(getDays, setDays)



I have no problem getting data, and I can remove the error by using:

readonly = ('days',)

But I actually wan't to receive that data.
Any ideas?

Regards
Martin

_______________________________________________
PyAMF users mailing list - [hidden email]
http://lists.pyamf.org/mailman/listinfo/users