Fixing bug noted on bitbucket here: https://bitbucket.org/jespern/django-piston/issue/140/genericforeignkey-object-has-no-attribute
Merge pull request #1 from crohling/master

'GenericForeignKey' object has no attribute 'serialize'