'GenericForeignKey' object has no attribute 'serialize'

https://bitbucket.org/jespern/django-piston/issue/140/genericforeignkey-object-has-no-attribute