def METHOD_NAME(self, request, obj=None):
    new_fieldsets = []
    fieldsets = super().METHOD_NAME(
        request, obj
    )
    if not issubclass(self.model, PermByFieldMixin):
        return fieldsets
    for fieldset in deepcopy(fieldsets):
        fields = [
            field for field in fieldset[1]['fields']
            if self._has_access_to_field(field, request)
        ]
        if not fields:
            continue
        fieldset[1]['fields'] = fields
        new_fieldsets.append(fieldset)
    return new_fieldsets