Fix cf serializer

This commit is contained in:
shamoon
2026-01-30 00:45:13 -08:00
parent bcfd80ed6f
commit 06bed0f634

View File

@@ -699,6 +699,9 @@ class StoragePathField(serializers.PrimaryKeyRelatedField):
class CustomFieldSerializer(serializers.ModelSerializer):
def __init__(self, *args, **kwargs):
# Ignore args passed by permissions mixin
kwargs.pop("user", None)
kwargs.pop("full_perms", None)
context = kwargs.get("context")
self.api_version = int(
context.get("request").version