mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-03 20:57:50 +02:00
Fix a regression introduced in v0.14.0
This commit is contained in:
@@ -259,7 +259,7 @@ class GetManufacturerItem(View):
|
||||
manufacturer,
|
||||
# all returned records must have the same `item_number``;
|
||||
# just pick it up the first result, otherwise `search`
|
||||
roster.first.item_number if roster else search,
|
||||
roster[0].item_number if roster else search,
|
||||
)
|
||||
else:
|
||||
roster = (
|
||||
|
Reference in New Issue
Block a user