Skip to content

Commit

Permalink
Correct datatracker import
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks committed Jun 21, 2019
1 parent b891b25 commit 66c7eb5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ietf/datatracker/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def fetch_and_update(cls):
@register_snippet
class Area(DatatrackerMixin, models.Model, index.Indexed):
PATH = '/api/v1/group/group/'
ARGS = {'type': 'area'}
ARGS = {'type': 'area', 'order_by': 'id'}
FIELDS = [
'name',
'resource_uri',
Expand Down Expand Up @@ -183,7 +183,7 @@ class Meta:
@register_snippet
class WorkingGroup(DatatrackerMixin, models.Model, index.Indexed):
PATH = '/api/v1/group/group/'
ARGS = {'state': 'active', 'type': 'wg'}
ARGS = {'state': 'active', 'type': 'wg', 'order_by': 'id'}
FIELDS = [
'name',
'parent',
Expand Down Expand Up @@ -250,7 +250,7 @@ class Meta:
@register_snippet
class RFC(DatatrackerMixin, models.Model, index.Indexed):
PATH = '/api/v1/doc/document/'
ARGS = {'states__slug': 'rfc'}
ARGS = {'states__slug': 'rfc', 'order_by': 'id'}
FIELDS = [
'name',
'resource_uri',
Expand Down Expand Up @@ -330,7 +330,7 @@ class Meta:
@register_snippet
class InternetDraft(DatatrackerMixin, models.Model, index.Indexed):
PATH = '/api/v1/doc/document/'
ARGS = {'states__type__slug': 'draft', 'states__slug': 'active'}
ARGS = {'states__type__slug': 'draft', 'states__slug': 'active', 'order_by':'id'}
FIELDS = [
'name',
'resource_uri',
Expand Down Expand Up @@ -382,7 +382,7 @@ class Meta:
@register_snippet
class Charter(DatatrackerMixin, models.Model, index.Indexed):
PATH = '/api/v1/doc/document/'
ARGS = {'type': 'charter'}
ARGS = {'type': 'charter', 'order_by':'id'}
FIELDS = [
'name',
'resource_uri',
Expand Down Expand Up @@ -462,7 +462,7 @@ class Meta:
@register_snippet
class Role(DatatrackerMixin, models.Model, index.Indexed):
PATH = '/api/v1/group/role/'
ARGS = {}
ARGS = {'order_by':'id'}
FIELDS = [
'email',
'group',
Expand All @@ -486,7 +486,7 @@ class Meta:
@register_snippet
class Email(DatatrackerMixin, models.Model, index.Indexed):
PATH = '/api/v1/person/email/'
ARGS = {'active': True}
ARGS = {'active': True, 'order_by':'address'}
FIELDS = [
'address',
'person',
Expand All @@ -506,7 +506,7 @@ class Meta:
@register_snippet
class Person(DatatrackerMixin, models.Model, index.Indexed):
PATH = '/api/v1/person/person/'
ARGS = {}
ARGS = {'order_by':'id'}
FIELDS = [
'name',
'resource_uri',
Expand Down

0 comments on commit 66c7eb5

Please sign in to comment.