def maybe_to_categorical(array):
    if isinstance(array, (ABCSeries, ABCCategoricalIndex)):
        return array._values
    return array
Return full permission string (app_label.perm_model)
dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/maybe_to_categorical--crossover with--dataset/ETHPy150Open lambdalisue/django-permission/src/permission/logics/base.py/PermissionLogic.get_full_permission_string