Skip to content

Commit 060c695

Browse files
authored
Merge pull request #83 from part-os/feature/add_part_url
Update components.py
2 parents 7aff2e0 + 7533b58 commit 060c695

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

paperless/api_mappers/quotes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ def map(cls, resource):
242242
'part_name',
243243
'part_number',
244244
'part_uuid',
245+
'part_url',
245246
'purchased_component',
246247
'process',
247248
'revision',

paperless/objects/components.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ class BaseComponent:
173173
thumbnail_url: Optional[str] = attr.ib(
174174
validator=attr.validators.optional(attr.validators.instance_of(str))
175175
)
176+
part_url: Optional[str] = attr.ib(
177+
validator=attr.validators.optional(attr.validators.instance_of(str))
178+
)
176179

177180
@property
178181
def part_name_sans_ext(self):

0 commit comments

Comments
 (0)