We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faecc69 commit ab8d018Copy full SHA for ab8d018
1 file changed
ietf/doc/resources.py
@@ -1,6 +1,6 @@
1
# Autogenerated by the mkresources management command 2014-12-14 19:50
2
from tastypie.resources import ModelResource
3
-from tastypie.fields import ToOneField, ToManyField
+from tastypie.fields import ToOneField, ToManyField, CharField
4
from tastypie.constants import ALL, ALL_WITH_RELATIONS
5
6
from ietf import api
@@ -86,6 +86,7 @@ class DocumentResource(ModelResource):
86
states = ToManyField(StateResource, 'states', null=True)
87
tags = ToManyField(DocTagNameResource, 'tags', null=True)
88
authors = ToManyField(EmailResource, 'authors', null=True)
89
+ rfc = CharField(attribute='rfc_number', null=True)
90
class Meta:
91
queryset = Document.objects.all()
92
#resource_name = 'document'
0 commit comments