mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-23 17:37:38 +00:00
Remove project_code filter from BuildSerializer
Removed project_code filter from BuildSerializer.
This commit is contained in:
@@ -164,17 +164,6 @@ class BuildSerializer(
|
|||||||
filter_name='project_code_detail',
|
filter_name='project_code_detail',
|
||||||
)
|
)
|
||||||
|
|
||||||
project_code = enable_filter(
|
|
||||||
FilterableIntegerField(
|
|
||||||
allow_null=True,
|
|
||||||
required=False,
|
|
||||||
label=_('Project Code'),
|
|
||||||
help_text=_('Project code for this build order'),
|
|
||||||
),
|
|
||||||
True,
|
|
||||||
filter_name='project_code_detail',
|
|
||||||
)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def annotate_queryset(queryset):
|
def annotate_queryset(queryset):
|
||||||
"""Add custom annotations to the BuildSerializer queryset, performing database queries as efficiently as possible.
|
"""Add custom annotations to the BuildSerializer queryset, performing database queries as efficiently as possible.
|
||||||
|
Reference in New Issue
Block a user