I don't think `__unicode__()` will work on Python 3. Should it be `str(perm.content_type)`?