fix: fix error

This commit is contained in:
behruz-dev
2025-09-02 14:29:15 +05:00
parent a7aea4ed42
commit 3b59929277

View File

@@ -21,4 +21,4 @@ class ProductListSerializer(serializers.ModelSerializer):
return {
'id': obj.unity.id,
'name': obj.unity.name,
}
} if obj.unity else None