mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Consolidate on 'pk' as the ID field in the API
This commit is contained in:
parent
27f956bffa
commit
4d35841233
@ -152,7 +152,7 @@ supplier_part_api_urls = [
|
||||
|
||||
company_api_urls = [
|
||||
|
||||
url(r'^part/', include(supplier_part_api_urls)),
|
||||
url(r'^part/?', include(supplier_part_api_urls)),
|
||||
|
||||
url(r'^price-break/?', SupplierPriceBreakList.as_view(), name='api-part-supplier-price'),
|
||||
|
||||
|
@ -33,7 +33,7 @@ class CompanySerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = Company
|
||||
fields = [
|
||||
'id',
|
||||
'pk',
|
||||
'url',
|
||||
'name',
|
||||
'description',
|
||||
|
Loading…
Reference in New Issue
Block a user