Added the option to order API resource lists by primary key, for stable ordering when paging through a list.

- Legacy-Id: 16284
This commit is contained in:
Henrik Levkowetz 2019-06-18 12:40:19 +00:00
parent b8e92d31da
commit 7270d5f67a
17 changed files with 138 additions and 5 deletions

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2014-11-13 23:53 # Autogenerated by the mkresources management command 2014-11-13 23:53
from ietf.api import ModelResource from ietf.api import ModelResource
from tastypie.fields import ToOneField, ToManyField from tastypie.fields import ToOneField, ToManyField
@ -21,6 +22,7 @@ class CommunityListResource(ModelResource):
queryset = CommunityList.objects.all() queryset = CommunityList.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'communitylist' #resource_name = 'communitylist'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"secret": ALL, "secret": ALL,
@ -38,6 +40,7 @@ class SearchRuleResource(ModelResource):
queryset = SearchRule.objects.all() queryset = SearchRule.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'rule' #resource_name = 'rule'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"rule_type": ALL, "rule_type": ALL,
@ -52,6 +55,7 @@ class EmailSubscriptionResource(ModelResource):
queryset = EmailSubscription.objects.all() queryset = EmailSubscription.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'emailsubscription' #resource_name = 'emailsubscription'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"email": ALL_WITH_RELATIONS, "email": ALL_WITH_RELATIONS,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2014-11-13 23:53 # Autogenerated by the mkresources management command 2014-11-13 23:53
from ietf.api import ModelResource from ietf.api import ModelResource
from tastypie.fields import ToOneField from tastypie.fields import ToOneField
@ -19,6 +20,7 @@ class DBTemplateResource(ModelResource):
queryset = DBTemplate.objects.all() queryset = DBTemplate.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'dbtemplate' #resource_name = 'dbtemplate'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"path": ALL, "path": ALL,

View file

@ -25,6 +25,7 @@ class BallotTypeResource(ModelResource):
queryset = BallotType.objects.all() queryset = BallotType.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'ballottype' #resource_name = 'ballottype'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"slug": ALL, "slug": ALL,
@ -47,6 +48,7 @@ class DeletedEventResource(ModelResource):
queryset = DeletedEvent.objects.all() queryset = DeletedEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'deletedevent' #resource_name = 'deletedevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"json": ALL, "json": ALL,
@ -62,6 +64,7 @@ class StateTypeResource(ModelResource):
queryset = StateType.objects.all() queryset = StateType.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'statetype' #resource_name = 'statetype'
ordering = ['id', ]
filtering = { filtering = {
"slug": ALL, "slug": ALL,
"label": ALL, "label": ALL,
@ -76,6 +79,7 @@ class StateResource(ModelResource):
queryset = State.objects.all() queryset = State.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'state' #resource_name = 'state'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"slug": ALL, "slug": ALL,
@ -109,6 +113,7 @@ class DocumentResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
detail_uri_name = 'name' detail_uri_name = 'name'
#resource_name = 'document' #resource_name = 'document'
ordering = ['id', ]
filtering = { filtering = {
"time": ALL, "time": ALL,
"title": ALL, "title": ALL,
@ -145,6 +150,7 @@ class DocumentAuthorResource(ModelResource):
queryset = DocumentAuthor.objects.all() queryset = DocumentAuthor.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'documentauthor' #resource_name = 'documentauthor'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"affiliation": ALL, "affiliation": ALL,
@ -165,6 +171,7 @@ class DocEventResource(ModelResource):
queryset = DocEvent.objects.all() queryset = DocEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'docevent' #resource_name = 'docevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -188,6 +195,7 @@ class StateDocEventResource(ModelResource):
queryset = StateDocEvent.objects.all() queryset = StateDocEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'statedocevent' #resource_name = 'statedocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -221,6 +229,7 @@ class DocHistoryResource(ModelResource):
queryset = DocHistory.objects.all() queryset = DocHistory.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'dochistory' #resource_name = 'dochistory'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -259,6 +268,7 @@ class ConsensusDocEventResource(ModelResource):
queryset = ConsensusDocEvent.objects.all() queryset = ConsensusDocEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'consensusdocevent' #resource_name = 'consensusdocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -280,6 +290,7 @@ class DocAliasResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
detail_uri_name = 'name' detail_uri_name = 'name'
#resource_name = 'docalias' #resource_name = 'docalias'
ordering = ['id', ]
filtering = { filtering = {
"name": ALL, "name": ALL,
"document": ALL_WITH_RELATIONS, "document": ALL_WITH_RELATIONS,
@ -296,6 +307,7 @@ class TelechatDocEventResource(ModelResource):
queryset = TelechatDocEvent.objects.all() queryset = TelechatDocEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'telechatdocevent' #resource_name = 'telechatdocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -319,6 +331,7 @@ class DocReminderResource(ModelResource):
queryset = DocReminder.objects.all() queryset = DocReminder.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'docreminder' #resource_name = 'docreminder'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"due": ALL, "due": ALL,
@ -338,6 +351,7 @@ class LastCallDocEventResource(ModelResource):
queryset = LastCallDocEvent.objects.all() queryset = LastCallDocEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'lastcalldocevent' #resource_name = 'lastcalldocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -361,6 +375,7 @@ class NewRevisionDocEventResource(ModelResource):
queryset = NewRevisionDocEvent.objects.all() queryset = NewRevisionDocEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'newrevisiondocevent' #resource_name = 'newrevisiondocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -383,6 +398,7 @@ class WriteupDocEventResource(ModelResource):
queryset = WriteupDocEvent.objects.all() queryset = WriteupDocEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'writeupdocevent' #resource_name = 'writeupdocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -406,6 +422,7 @@ class InitialReviewDocEventResource(ModelResource):
queryset = InitialReviewDocEvent.objects.all() queryset = InitialReviewDocEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'initialreviewdocevent' #resource_name = 'initialreviewdocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -429,6 +446,7 @@ class DocHistoryAuthorResource(ModelResource):
queryset = DocHistoryAuthor.objects.all() queryset = DocHistoryAuthor.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'dochistoryauthor' #resource_name = 'dochistoryauthor'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"affiliation": ALL, "affiliation": ALL,
@ -451,6 +469,7 @@ class BallotDocEventResource(ModelResource):
queryset = BallotDocEvent.objects.all() queryset = BallotDocEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'ballotdocevent' #resource_name = 'ballotdocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -474,6 +493,7 @@ class RelatedDocumentResource(ModelResource):
queryset = RelatedDocument.objects.all() queryset = RelatedDocument.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'relateddocument' #resource_name = 'relateddocument'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"source": ALL_WITH_RELATIONS, "source": ALL_WITH_RELATIONS,
@ -492,6 +512,7 @@ class RelatedDocHistoryResource(ModelResource):
queryset = RelatedDocHistory.objects.all() queryset = RelatedDocHistory.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'relateddochistory' #resource_name = 'relateddochistory'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"source": ALL_WITH_RELATIONS, "source": ALL_WITH_RELATIONS,
@ -514,6 +535,7 @@ class BallotPositionDocEventResource(ModelResource):
queryset = BallotPositionDocEvent.objects.all() queryset = BallotPositionDocEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'ballotpositiondocevent' #resource_name = 'ballotpositiondocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -546,6 +568,7 @@ class AddedMessageEventResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'addedmessageevent' #resource_name = 'addedmessageevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -573,6 +596,7 @@ class SubmissionDocEventResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'submissiondocevent' #resource_name = 'submissiondocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -599,6 +623,7 @@ class ReviewRequestDocEventResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'reviewrequestdocevent' #resource_name = 'reviewrequestdocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -623,6 +648,7 @@ class EditedAuthorsDocEventResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'editedauthorsdocevent' #resource_name = 'editedauthorsdocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -646,6 +672,7 @@ class DocumentURLResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'documenturl' #resource_name = 'documenturl'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"desc": ALL, "desc": ALL,
@ -670,6 +697,7 @@ class ReviewAssignmentDocEventResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'reviewassignmentdocevent' #resource_name = 'reviewassignmentdocevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2014-11-13 23:15 # Autogenerated by the mkresources management command 2014-11-13 23:15
from ietf.api import ModelResource from ietf.api import ModelResource
from ietf.api import ToOneField from ietf.api import ToOneField
@ -28,6 +29,7 @@ class GroupResource(ModelResource):
queryset = Group.objects.all() queryset = Group.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'group' #resource_name = 'group'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -57,6 +59,7 @@ class GroupStateTransitionsResource(ModelResource):
queryset = GroupStateTransitions.objects.all() queryset = GroupStateTransitions.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'groupstatetransitions' #resource_name = 'groupstatetransitions'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"group": ALL_WITH_RELATIONS, "group": ALL_WITH_RELATIONS,
@ -75,6 +78,7 @@ class GroupMilestoneResource(ModelResource):
queryset = GroupMilestone.objects.all() queryset = GroupMilestone.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'groupmilestone' #resource_name = 'groupmilestone'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"desc": ALL, "desc": ALL,
@ -102,6 +106,7 @@ class GroupHistoryResource(ModelResource):
queryset = GroupHistory.objects.all() queryset = GroupHistory.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'grouphistory' #resource_name = 'grouphistory'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -129,6 +134,7 @@ class GroupURLResource(ModelResource):
queryset = GroupURL.objects.all() queryset = GroupURL.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'groupurl' #resource_name = 'groupurl'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL, "name": ALL,
@ -149,6 +155,7 @@ class RoleResource(ModelResource):
queryset = Role.objects.all() queryset = Role.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'role' #resource_name = 'role'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL_WITH_RELATIONS, "name": ALL_WITH_RELATIONS,
@ -167,6 +174,7 @@ class GroupEventResource(ModelResource):
queryset = GroupEvent.objects.all() queryset = GroupEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'groupevent' #resource_name = 'groupevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -189,6 +197,7 @@ class RoleHistoryResource(ModelResource):
queryset = RoleHistory.objects.all() queryset = RoleHistory.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'rolehistory' #resource_name = 'rolehistory'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL_WITH_RELATIONS, "name": ALL_WITH_RELATIONS,
@ -209,6 +218,7 @@ class GroupMilestoneHistoryResource(ModelResource):
queryset = GroupMilestoneHistory.objects.all() queryset = GroupMilestoneHistory.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'groupmilestonehistory' #resource_name = 'groupmilestonehistory'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"desc": ALL, "desc": ALL,
@ -233,6 +243,7 @@ class MilestoneGroupEventResource(ModelResource):
queryset = MilestoneGroupEvent.objects.all() queryset = MilestoneGroupEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'milestonegroupevent' #resource_name = 'milestonegroupevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -257,6 +268,7 @@ class ChangeStateGroupEventResource(ModelResource):
queryset = ChangeStateGroupEvent.objects.all() queryset = ChangeStateGroupEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'changestategroupevent' #resource_name = 'changestategroupevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -278,6 +290,7 @@ class GroupFeaturesResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'groupfeatures' #resource_name = 'groupfeatures'
ordering = ['id', ]
filtering = { filtering = {
"has_milestones": ALL, "has_milestones": ALL,
"has_chartering_process": ALL, "has_chartering_process": ALL,
@ -308,6 +321,7 @@ class HistoricalGroupFeaturesResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'historicalgroupfeatures' #resource_name = 'historicalgroupfeatures'
ordering = ['id', ]
filtering = { filtering = {
"has_milestones": ALL, "has_milestones": ALL,
"has_chartering_process": ALL, "has_chartering_process": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2014-11-13 23:53 # Autogenerated by the mkresources management command 2014-11-13 23:53
from ietf.api import ModelResource from ietf.api import ModelResource
from tastypie.constants import ALL from tastypie.constants import ALL
@ -14,6 +15,7 @@ class TelechatDateResource(ModelResource):
queryset = TelechatDate.objects.all() queryset = TelechatDate.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'telechatdate' #resource_name = 'telechatdate'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"date": ALL, "date": ALL,
@ -26,6 +28,7 @@ class TelechatResource(ModelResource):
queryset = Telechat.objects.all() queryset = Telechat.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'telechat' #resource_name = 'telechat'
ordering = ['tlechat_id', ]
filtering = { filtering = {
"telechat_id": ALL, "telechat_id": ALL,
"telechat_date": ALL, "telechat_date": ALL,
@ -44,6 +47,7 @@ class TelechatAgendaItemResource(ModelResource):
queryset = TelechatAgendaItem.objects.all() queryset = TelechatAgendaItem.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'telechatagendaitem' #resource_name = 'telechatagendaitem'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"text": ALL, "text": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2015-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2015-03-21 14:05 PDT # Autogenerated by the mkresources management command 2015-03-21 14:05 PDT
from ietf.api import ModelResource from ietf.api import ModelResource
from ietf.api import ToOneField from ietf.api import ToOneField
@ -23,6 +24,7 @@ class IprDisclosureBaseResource(ModelResource):
cache = SimpleCache() cache = SimpleCache()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'iprdisclosurebase' #resource_name = 'iprdisclosurebase'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"compliant": ALL, "compliant": ALL,
@ -49,6 +51,7 @@ class IprDocRelResource(ModelResource):
queryset = IprDocRel.objects.all() queryset = IprDocRel.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'iprdocrel' #resource_name = 'iprdocrel'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"sections": ALL, "sections": ALL,
@ -73,6 +76,7 @@ class HolderIprDisclosureResource(ModelResource):
queryset = HolderIprDisclosure.objects.all() queryset = HolderIprDisclosure.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'holderiprdisclosure' #resource_name = 'holderiprdisclosure'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"compliant": ALL, "compliant": ALL,
@ -116,6 +120,7 @@ class ThirdPartyIprDisclosureResource(ModelResource):
queryset = ThirdPartyIprDisclosure.objects.all() queryset = ThirdPartyIprDisclosure.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'thirdpartyiprdisclosure' #resource_name = 'thirdpartyiprdisclosure'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"compliant": ALL, "compliant": ALL,
@ -149,6 +154,7 @@ class RelatedIprResource(ModelResource):
queryset = RelatedIpr.objects.all() queryset = RelatedIpr.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'relatedipr' #resource_name = 'relatedipr'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"source": ALL_WITH_RELATIONS, "source": ALL_WITH_RELATIONS,
@ -171,6 +177,7 @@ class NonDocSpecificIprDisclosureResource(ModelResource):
queryset = NonDocSpecificIprDisclosure.objects.all() queryset = NonDocSpecificIprDisclosure.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'nondocspecificiprdisclosure' #resource_name = 'nondocspecificiprdisclosure'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"compliant": ALL, "compliant": ALL,
@ -209,6 +216,7 @@ class GenericIprDisclosureResource(ModelResource):
queryset = GenericIprDisclosure.objects.all() queryset = GenericIprDisclosure.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'genericiprdisclosure' #resource_name = 'genericiprdisclosure'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"compliant": ALL, "compliant": ALL,
@ -245,6 +253,7 @@ class IprEventResource(ModelResource):
queryset = IprEvent.objects.all() queryset = IprEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'iprevent' #resource_name = 'iprevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -273,6 +282,7 @@ class LegacyMigrationIprEventResource(ModelResource):
queryset = LegacyMigrationIprEvent.objects.all() queryset = LegacyMigrationIprEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'legacymigrationiprevent' #resource_name = 'legacymigrationiprevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2015-2019, All Rights Reserved
# Autogenerated by the makeresources management command 2015-10-11 13:15 PDT # Autogenerated by the makeresources management command 2015-10-11 13:15 PDT
from ietf.api import ModelResource from ietf.api import ModelResource
from ietf.api import ToOneField from ietf.api import ToOneField
@ -28,6 +29,7 @@ class LiaisonStatementResource(ModelResource):
queryset = LiaisonStatement.objects.all() queryset = LiaisonStatement.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'liaisonstatement' #resource_name = 'liaisonstatement'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"title": ALL, "title": ALL,
@ -59,6 +61,7 @@ class LiaisonStatementGroupContactsResource(ModelResource):
queryset = LiaisonStatementGroupContacts.objects.all() queryset = LiaisonStatementGroupContacts.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'liaisonstatementgroupcontacts' #resource_name = 'liaisonstatementgroupcontacts'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"contacts": ALL, "contacts": ALL,
@ -78,6 +81,7 @@ class LiaisonStatementEventResource(ModelResource):
queryset = LiaisonStatementEvent.objects.all() queryset = LiaisonStatementEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'liaisonstatementevent' #resource_name = 'liaisonstatementevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -97,6 +101,7 @@ class LiaisonStatementAttachmentResource(ModelResource):
queryset = LiaisonStatementAttachment.objects.all() queryset = LiaisonStatementAttachment.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'liaisonstatementattachment' #resource_name = 'liaisonstatementattachment'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"removed": ALL, "removed": ALL,
@ -115,6 +120,7 @@ class RelatedLiaisonStatementResource(ModelResource):
queryset = RelatedLiaisonStatement.objects.all() queryset = RelatedLiaisonStatement.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'relatedliaisonstatement' #resource_name = 'relatedliaisonstatement'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"source": ALL_WITH_RELATIONS, "source": ALL_WITH_RELATIONS,

View file

@ -1,4 +1,4 @@
# Copyright The IETF Trust 2016, All Rights Reserved # Copyright The IETF Trust 2016-2019, All Rights Reserved
# Autogenerated by the makeresources management command 2016-06-12 12:29 PDT # Autogenerated by the makeresources management command 2016-06-12 12:29 PDT
from ietf.api import ModelResource from ietf.api import ModelResource
from tastypie.fields import ToManyField # pyflakes:ignore from tastypie.fields import ToManyField # pyflakes:ignore
@ -19,6 +19,7 @@ class WhitelistedResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'whitelisted' #resource_name = 'whitelisted'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -33,6 +34,7 @@ class ListResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'list' #resource_name = 'list'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL, "name": ALL,
@ -48,6 +50,7 @@ class SubscribedResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'subscribed' #resource_name = 'subscribed'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2014-11-13 23:15 # Autogenerated by the mkresources management command 2014-11-13 23:15
from ietf.api import ModelResource from ietf.api import ModelResource
from ietf.api import ToOneField from ietf.api import ToOneField
@ -21,7 +22,7 @@ class MeetingResource(ModelResource):
queryset = Meeting.objects.all() queryset = Meeting.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'meeting' #resource_name = 'meeting'
ordering = ['date', ] ordering = ['id', 'date', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"number": ALL, "number": ALL,
@ -57,6 +58,7 @@ class ResourceAssociationResource(ModelResource):
queryset = ResourceAssociation.objects.all() queryset = ResourceAssociation.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
resource_name = 'resourceassociation' resource_name = 'resourceassociation'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"icon": ALL, "icon": ALL,
@ -79,6 +81,7 @@ class ConstraintResource(ModelResource):
queryset = Constraint.objects.all() queryset = Constraint.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'constraint' #resource_name = 'constraint'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"day": ALL, "day": ALL,
@ -97,6 +100,7 @@ class FloorPlanResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'floorplan' #resource_name = 'floorplan'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL, "name": ALL,
@ -119,6 +123,7 @@ class RoomResource(ModelResource):
queryset = Room.objects.all() queryset = Room.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'room' #resource_name = 'room'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL, "name": ALL,
@ -141,6 +146,7 @@ class ScheduleResource(ModelResource):
queryset = Schedule.objects.all() queryset = Schedule.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'schedule' #resource_name = 'schedule'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL, "name": ALL,
@ -171,7 +177,7 @@ class SessionResource(ModelResource):
queryset = Session.objects.all() queryset = Session.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'session' #resource_name = 'session'
ordering = ['modified', 'scheduled','meeting',] ordering = ['id', 'modified', 'scheduled','meeting',]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL, "name": ALL,
@ -206,7 +212,7 @@ class TimeSlotResource(ModelResource):
queryset = TimeSlot.objects.all() queryset = TimeSlot.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'timeslot' #resource_name = 'timeslot'
ordering = ['time', 'modified', 'meeting',] ordering = ['id', 'time', 'modified', 'meeting',]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL, "name": ALL,
@ -231,7 +237,7 @@ class SchedTimeSessAssignmentResource(ModelResource):
queryset = SchedTimeSessAssignment.objects.all() queryset = SchedTimeSessAssignment.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'schedtimesessassignment' #resource_name = 'schedtimesessassignment'
ordering = ['modified', ] ordering = ['id', 'modified', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"modified": ALL, "modified": ALL,
@ -256,6 +262,7 @@ class SessionPresentationResource(ModelResource):
queryset = SessionPresentation.objects.all() queryset = SessionPresentation.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'sessionpresentation' #resource_name = 'sessionpresentation'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"rev": ALL, "rev": ALL,
@ -275,6 +282,7 @@ class UrlResourceResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
resource_name = 'urlresource' resource_name = 'urlresource'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"url": ALL, "url": ALL,
@ -294,6 +302,7 @@ class ImportantDateResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'importantdate' #resource_name = 'importantdate'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"date": ALL, "date": ALL,
@ -312,6 +321,7 @@ class SlideSubmissionResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'slidesubmission' #resource_name = 'slidesubmission'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"title": ALL, "title": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2014-11-13 23:53 # Autogenerated by the mkresources management command 2014-11-13 23:53
from ietf.api import ModelResource from ietf.api import ModelResource
from ietf.api import ToOneField from ietf.api import ToOneField
@ -21,6 +22,7 @@ class MessageResource(ModelResource):
queryset = Message.objects.all() queryset = Message.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'message' #resource_name = 'message'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -47,6 +49,7 @@ class SendQueueResource(ModelResource):
queryset = SendQueue.objects.all() queryset = SendQueue.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'sendqueue' #resource_name = 'sendqueue'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -67,6 +70,7 @@ class MessageAttachmentResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'messageattachment' #resource_name = 'messageattachment'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"filename": ALL, "filename": ALL,
@ -88,6 +92,7 @@ class AnnouncementFromResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'announcementfrom' #resource_name = 'announcementfrom'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"address": ALL, "address": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2014-11-13 23:53 # Autogenerated by the mkresources management command 2014-11-13 23:53
from ietf.api import ModelResource from ietf.api import ModelResource
from ietf.api import ToOneField from ietf.api import ToOneField
@ -18,6 +19,7 @@ class NomComResource(ModelResource):
queryset = NomCom.objects.all() queryset = NomCom.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'nomcom' #resource_name = 'nomcom'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"public_key": ALL, "public_key": ALL,
@ -40,6 +42,7 @@ class PositionResource(ModelResource):
queryset = Position.objects.all() queryset = Position.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'position' #resource_name = 'position'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL, "name": ALL,
@ -63,6 +66,7 @@ class NomineeResource(ModelResource):
queryset = Nominee.objects.all() queryset = Nominee.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'nominee' #resource_name = 'nominee'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"email": ALL_WITH_RELATIONS, "email": ALL_WITH_RELATIONS,
@ -79,6 +83,7 @@ class ReminderDatesResource(ModelResource):
queryset = ReminderDates.objects.all() queryset = ReminderDates.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'reminderdates' #resource_name = 'reminderdates'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"date": ALL, "date": ALL,
@ -96,6 +101,7 @@ class NomineePositionResource(ModelResource):
queryset = NomineePosition.objects.all() queryset = NomineePosition.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'nomineeposition' #resource_name = 'nomineeposition'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -118,6 +124,7 @@ class FeedbackResource(ModelResource):
queryset = Feedback.objects.all() queryset = Feedback.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'feedback' #resource_name = 'feedback'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"author": ALL, "author": ALL,
@ -143,6 +150,7 @@ class NominationResource(ModelResource):
queryset = Nomination.objects.all() queryset = Nomination.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'nomination' #resource_name = 'nomination'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"candidate_name": ALL, "candidate_name": ALL,
@ -165,6 +173,7 @@ class FeedbackLastSeenResource(ModelResource):
cache = SimpleCache() cache = SimpleCache()
queryset = FeedbackLastSeen.objects.all() queryset = FeedbackLastSeen.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -185,6 +194,7 @@ class TopicResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'topic' #resource_name = 'topic'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"subject": ALL, "subject": ALL,
@ -205,6 +215,7 @@ class TopicFeedbackLastSeenResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'topicfeedbacklastseen' #resource_name = 'topicfeedbacklastseen'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2014-11-13 23:53 # Autogenerated by the mkresources management command 2014-11-13 23:53
from ietf.api import ModelResource from ietf.api import ModelResource
from tastypie.fields import ToOneField from tastypie.fields import ToOneField
@ -38,6 +39,7 @@ class EmailResource(ModelResource):
queryset = Email.objects.all() queryset = Email.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'email' #resource_name = 'email'
ordering = ['address', ]
filtering = { filtering = {
"address": ALL, "address": ALL,
"time": ALL, "time": ALL,
@ -53,6 +55,7 @@ class AliasResource(ModelResource):
queryset = Alias.objects.all() queryset = Alias.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'alias' #resource_name = 'alias'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL, "name": ALL,
@ -68,6 +71,7 @@ class PersonalApiKeyResource(ModelResource):
cache = SimpleCache() cache = SimpleCache()
excludes = ['salt', ] excludes = ['salt', ]
#resource_name = 'personalapikey' #resource_name = 'personalapikey'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"endpoint": ALL, "endpoint": ALL,
@ -88,6 +92,7 @@ class PersonEventResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'personevent' #resource_name = 'personevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -107,6 +112,7 @@ class PersonApiKeyEventResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'personapikeyevent' #resource_name = 'personapikeyevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -128,6 +134,7 @@ class HistoricalPersonResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'historicalperson' #resource_name = 'historicalperson'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -157,6 +164,7 @@ class HistoricalEmailResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'historicalemail' #resource_name = 'historicalemail'
ordering = ['id', ]
filtering = { filtering = {
"address": ALL, "address": ALL,
"time": ALL, "time": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2014-11-13 23:53 # Autogenerated by the mkresources management command 2014-11-13 23:53
from ietf.api import ModelResource from ietf.api import ModelResource
from tastypie.fields import ToOneField from tastypie.fields import ToOneField
@ -15,6 +16,7 @@ class RedirectResource(ModelResource):
queryset = Redirect.objects.all() queryset = Redirect.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'redirect' #resource_name = 'redirect'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"cgi": ALL, "cgi": ALL,
@ -30,6 +32,7 @@ class SuffixResource(ModelResource):
queryset = Suffix.objects.all() queryset = Suffix.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'suffix' #resource_name = 'suffix'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"rest": ALL, "rest": ALL,
@ -45,6 +48,7 @@ class CommandResource(ModelResource):
queryset = Command.objects.all() queryset = Command.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'command' #resource_name = 'command'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"command": ALL, "command": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2016-2019, All Rights Reserved
# Autogenerated by the makeresources management command 2016-06-14 04:21 PDT # Autogenerated by the makeresources management command 2016-06-14 04:21 PDT
from tastypie.resources import ModelResource from tastypie.resources import ModelResource
from tastypie.fields import ToManyField # pyflakes:ignore from tastypie.fields import ToManyField # pyflakes:ignore
@ -23,6 +24,7 @@ class ReviewerSettingsResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'reviewer' #resource_name = 'reviewer'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"min_interval": ALL, "min_interval": ALL,
@ -49,6 +51,7 @@ class ReviewRequestResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'reviewrequest' #resource_name = 'reviewrequest'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -74,6 +77,7 @@ class UnavailablePeriodResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'unavailableperiod' #resource_name = 'unavailableperiod'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"start_date": ALL, "start_date": ALL,
@ -98,6 +102,7 @@ class ReviewWishResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'reviewwish' #resource_name = 'reviewwish'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -118,6 +123,7 @@ class NextReviewerInTeamResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'nextreviewerinteam' #resource_name = 'nextreviewerinteam'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"team": ALL_WITH_RELATIONS, "team": ALL_WITH_RELATIONS,
@ -136,6 +142,7 @@ class ReviewSecretarySettingsResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'reviewsecretarysettings' #resource_name = 'reviewsecretarysettings'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"remind_days_before_deadline": ALL, "remind_days_before_deadline": ALL,
@ -157,6 +164,7 @@ class ReviewTeamSettingsResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'reviewteamsettings' #resource_name = 'reviewteamsettings'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"autosuggest": ALL, "autosuggest": ALL,
@ -180,6 +188,7 @@ class HistoricalReviewerSettingsResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'historicalreviewersettings' #resource_name = 'historicalreviewersettings'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"min_interval": ALL, "min_interval": ALL,
@ -210,6 +219,7 @@ class ReviewAssignmentResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'reviewassignment' #resource_name = 'reviewassignment'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"assigned_on": ALL, "assigned_on": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2017-2019, All Rights Reserved
# Autogenerated by the makeresources management command 2017-02-15 10:10 PST # Autogenerated by the makeresources management command 2017-02-15 10:10 PST
from tastypie.resources import ModelResource from tastypie.resources import ModelResource
from tastypie.fields import ToManyField # pyflakes:ignore from tastypie.fields import ToManyField # pyflakes:ignore
@ -18,6 +19,7 @@ class CountryAliasResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'countryalias' #resource_name = 'countryalias'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"alias": ALL, "alias": ALL,
@ -31,6 +33,7 @@ class AffiliationIgnoredEndingResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'affiliationignoredending' #resource_name = 'affiliationignoredending'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"ending": ALL, "ending": ALL,
@ -43,6 +46,7 @@ class AffiliationAliasResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'affiliationalias' #resource_name = 'affiliationalias'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"alias": ALL, "alias": ALL,
@ -56,6 +60,7 @@ class MeetingRegistrationResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'meetingregistration' #resource_name = 'meetingregistration'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"meeting": ALL_WITH_RELATIONS, "meeting": ALL_WITH_RELATIONS,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2014-11-13 23:53 # Autogenerated by the mkresources management command 2014-11-13 23:53
from ietf.api import ModelResource from ietf.api import ModelResource
from tastypie.fields import ToOneField, ToManyField from tastypie.fields import ToOneField, ToManyField
@ -17,6 +18,7 @@ class PreapprovalResource(ModelResource):
queryset = Preapproval.objects.all() queryset = Preapproval.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'preapproval' #resource_name = 'preapproval'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"name": ALL, "name": ALL,
@ -38,6 +40,7 @@ class SubmissionResource(ModelResource):
queryset = Submission.objects.all() queryset = Submission.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'submission' #resource_name = 'submission'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"remote_ip": ALL, "remote_ip": ALL,
@ -72,6 +75,7 @@ class SubmissionEventResource(ModelResource):
queryset = SubmissionEvent.objects.all() queryset = SubmissionEvent.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'submissionevent' #resource_name = 'submissionevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -88,6 +92,7 @@ class SubmissionCheckResource(ModelResource):
queryset = SubmissionCheck.objects.all() queryset = SubmissionCheck.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'submissioncheck' #resource_name = 'submissioncheck'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,
@ -116,6 +121,7 @@ class SubmissionEmailEventResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'submissionemailevent' #resource_name = 'submissionemailevent'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved
# Autogenerated by the mkresources management command 2014-11-13 05:39 # Autogenerated by the mkresources management command 2014-11-13 05:39
from ietf.api import ModelResource from ietf.api import ModelResource
from tastypie.fields import CharField from tastypie.fields import CharField
@ -33,6 +34,7 @@ class DumpInfoResource(ModelResource):
queryset = DumpInfo.objects.all() queryset = DumpInfo.objects.all()
serializer = api.Serializer() serializer = api.Serializer()
#resource_name = 'dumpinfo' #resource_name = 'dumpinfo'
ordering = ['id', ]
filtering = { filtering = {
"date": ALL, "date": ALL,
"host": ALL, "host": ALL,
@ -46,6 +48,7 @@ class VersionInfoResource(ModelResource):
serializer = api.Serializer() serializer = api.Serializer()
cache = SimpleCache() cache = SimpleCache()
#resource_name = 'versioninfo' #resource_name = 'versioninfo'
ordering = ['id', ]
filtering = { filtering = {
"id": ALL, "id": ALL,
"time": ALL, "time": ALL,