def get_permission_required(self):
            if self.permission_required is None:
                raise ImproperlyConfigured(
                    '{0} is missing the permission_required attribute. Define {0}.permission_required, or override '
                    '{0}.get_permission_required().'.format(self.__class__.__name__)
                )
            if isinstance(self.permission_required, six.string_types):
                perms = (self.permission_required, )
            else:
                perms = self.permission_required
            return perms
Convert from db-friendly format to originally typed values.
dataset/ETHPy150Open pinax/pinax-likes/pinax/likes/compat.py/PermissionRequiredMixin.get_permission_required--crossover with--dataset/ETHPy150Open djangonauts/django-hstore/django_hstore/fields.py/SerializedDictionaryField.to_python