I use
my_classalias = pyamf.register_class(mymodel, mymodel._meta.object_name)
to make my django model into AMF serialized objects.
But the problem is mymodel contains a auto created pk field called id, but the Flash/Flex client can't accept such field, is there a way to remove that in PyAMF ClassAlias?
Thanks in advance!
Here is my own solution:
or alternatively, in your
models.pyNote there is a unpatched bug in PyAMF for the m2m fields, you may have to manually edit file
pyamf/adapters/_django_db_models_base.py, line168:Hope this helps someone who has the same problem with me.