Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Jan 20, 2025
1 parent 1644618 commit 4e23443
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/backend/InvenTree/part/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ class PartSerializer(
Used when displaying all details of a single component.
"""

import_exclude_fields = ['duplicate', 'tags']
import_exclude_fields = ['duplicate']

class Meta:
"""Metaclass defining serializer fields."""
Expand Down
4 changes: 2 additions & 2 deletions src/backend/InvenTree/stock/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class StockItemSerializer(

export_only_fields = ['part_pricing_min', 'part_pricing_max']

import_exclude_fields = ['use_pack_size', 'tags']
import_exclude_fields = ['use_pack_size']

class Meta:
"""Metaclass options."""
Expand Down Expand Up @@ -1142,7 +1142,7 @@ class LocationSerializer(
):
"""Detailed information about a stock location."""

import_exclude_fields = ['tags']
import_exclude_fields = []

class Meta:
"""Metaclass options."""
Expand Down

0 comments on commit 4e23443

Please sign in to comment.