2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-10-25 02:17:37 +00:00

fix schema fields

This commit is contained in:
Matthias Mair
2025-10-13 09:59:55 +02:00
parent bddc90b8b1
commit 01bfa8aa01
2 changed files with 10 additions and 2 deletions

View File

@@ -162,7 +162,15 @@ class BuildSerializer(
name='project_code_detail', name='project_code_detail',
) )
project_code = can_filter(CfIntegerField(), True, name='project_code_detail') project_code = can_filter(
CfIntegerField(
allow_null=True,
label=_('Project Code'),
help_text=_('Project code for this build order'),
),
True,
name='project_code_detail',
)
@staticmethod @staticmethod
def annotate_queryset(queryset): def annotate_queryset(queryset):

View File

@@ -290,7 +290,7 @@ class ManufacturerPartSerializer(
) )
pretty_name = can_filter( pretty_name = can_filter(
CfCharField(read_only=True, allow_null=True), name='prettify' CfCharField(read_only=True, allow_null=True), name='pretty'
) )
manufacturer = serializers.PrimaryKeyRelatedField( manufacturer = serializers.PrimaryKeyRelatedField(