'GenericForeignKey' object has no attribute 'serialize'

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