Consolidate on 'pk' as the ID field in the API

This commit is contained in:
Oliver Walters 2019-05-23 00:31:27 +10:00
parent 27f956bffa
commit 4d35841233
2 changed files with 2 additions and 2 deletions

View File

@ -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'),

View File

@ -33,7 +33,7 @@ class CompanySerializer(serializers.ModelSerializer):
class Meta:
model = Company
fields = [
'id',
'pk',
'url',
'name',
'description',