Fixing bug noted on bitbucket here: https://bitbucket.org/jespern/django-piston/issue/140/genericforeignkey-object-has-no-attribute