Skip to content

Commit c1b826e

Browse files
Fix sitemaps
1 parent af6b6a7 commit c1b826e

33 files changed

+1166
-341
lines changed

backend/components/models.py

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class Component(BaseModel):
7979

8080
id = models.UUIDField(primary_key=True, editable=False, default=uuid.uuid4)
8181
description = models.CharField(max_length=255, blank=True)
82+
# vernacular_name = models.CharField(max_length=50, blank=True)
8283
manufacturer = models.ForeignKey(
8384
ComponentManufacturer, blank=True, null=True, on_delete=models.PROTECT
8485
)

backend/components/serializers.py

+1-17
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,7 @@ class ComponentSerializer(serializers.ModelSerializer):
128128

129129
class Meta:
130130
model = Component
131-
fields = [
132-
"id",
133-
"description",
134-
"manufacturer",
135-
"manufacturer_part_no",
136-
"mounting_style",
137-
"type",
138-
"category",
139-
"size",
140-
"discontinued",
141-
"notes",
142-
"link",
143-
"allow_comments",
144-
"supplier_items",
145-
"qualities", # Include the custom field
146-
"user_submitted_status",
147-
]
131+
exclude = ["allow_comments", "user_submitted_status", "submitted_by"]
148132

149133
def get_qualities(self, obj):
150134
"""

0 commit comments

Comments
 (0)