Skip to content

Commit 565c55a

Browse files
committed
The Document and DocAlias primary key refactoring caused the Tastypie API under /api/v1/ to change -- reverting that to use the old form, with name ask key.
- Legacy-Id: 16282
1 parent a5cf8b6 commit 565c55a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/doc/resources.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright The IETF Trust 2014-2019, All Rights Reserved
2+
# -*- coding: utf-8 -*-
13
# Autogenerated by the makeresources management command 2015-10-19 12:29 PDT
24
from ietf.api import ModelResource
35
from ietf.api import ToOneField
@@ -105,6 +107,7 @@ class Meta:
105107
cache = SimpleCache()
106108
queryset = Document.objects.all()
107109
serializer = api.Serializer()
110+
detail_uri_name = 'name'
108111
#resource_name = 'document'
109112
filtering = {
110113
"time": ALL,
@@ -275,6 +278,7 @@ class Meta:
275278
cache = SimpleCache()
276279
queryset = DocAlias.objects.all()
277280
serializer = api.Serializer()
281+
detail_uri_name = 'name'
278282
#resource_name = 'docalias'
279283
filtering = {
280284
"name": ALL,

0 commit comments

Comments
 (0)