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
This commit is contained in:
parent
a5cf8b6a3b
commit
565c55ab05
|
@ -1,3 +1,5 @@
|
|||
# Copyright The IETF Trust 2014-2019, All Rights Reserved
|
||||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by the makeresources management command 2015-10-19 12:29 PDT
|
||||
from ietf.api import ModelResource
|
||||
from ietf.api import ToOneField
|
||||
|
@ -105,6 +107,7 @@ class DocumentResource(ModelResource):
|
|||
cache = SimpleCache()
|
||||
queryset = Document.objects.all()
|
||||
serializer = api.Serializer()
|
||||
detail_uri_name = 'name'
|
||||
#resource_name = 'document'
|
||||
filtering = {
|
||||
"time": ALL,
|
||||
|
@ -275,6 +278,7 @@ class DocAliasResource(ModelResource):
|
|||
cache = SimpleCache()
|
||||
queryset = DocAlias.objects.all()
|
||||
serializer = api.Serializer()
|
||||
detail_uri_name = 'name'
|
||||
#resource_name = 'docalias'
|
||||
filtering = {
|
||||
"name": ALL,
|
||||
|
|
Loading…
Reference in a new issue