Updated liaison resources file.
- Legacy-Id: 10193
This commit is contained in:
parent
054c24bea4
commit
9aade6b558
|
@ -1,4 +1,4 @@
|
||||||
# Autogenerated by the makeresources management command 2015-08-27 10:22 PDT
|
# Autogenerated by the makeresources management command 2015-10-11 13:15 PDT
|
||||||
from tastypie.resources import ModelResource
|
from tastypie.resources import ModelResource
|
||||||
from tastypie.fields import ToOneField, ToManyField # pyflakes:ignore
|
from tastypie.fields import ToOneField, ToManyField # pyflakes:ignore
|
||||||
from tastypie.constants import ALL, ALL_WITH_RELATIONS # pyflakes:ignore
|
from tastypie.constants import ALL, ALL_WITH_RELATIONS # pyflakes:ignore
|
||||||
|
@ -52,10 +52,12 @@ class LiaisonStatementGroupContactsResource(ModelResource):
|
||||||
group = ToOneField(GroupResource, 'group')
|
group = ToOneField(GroupResource, 'group')
|
||||||
class Meta:
|
class Meta:
|
||||||
queryset = LiaisonStatementGroupContacts.objects.all()
|
queryset = LiaisonStatementGroupContacts.objects.all()
|
||||||
|
serializer = api.Serializer()
|
||||||
#resource_name = 'liaisonstatementgroupcontacts'
|
#resource_name = 'liaisonstatementgroupcontacts'
|
||||||
filtering = {
|
filtering = {
|
||||||
"id": ALL,
|
"id": ALL,
|
||||||
"contacts": ALL,
|
"contacts": ALL,
|
||||||
|
"cc_contacts": ALL,
|
||||||
"group": ALL_WITH_RELATIONS,
|
"group": ALL_WITH_RELATIONS,
|
||||||
}
|
}
|
||||||
api.liaisons.register(LiaisonStatementGroupContactsResource())
|
api.liaisons.register(LiaisonStatementGroupContactsResource())
|
||||||
|
@ -68,6 +70,7 @@ class LiaisonStatementEventResource(ModelResource):
|
||||||
statement = ToOneField(LiaisonStatementResource, 'statement')
|
statement = ToOneField(LiaisonStatementResource, 'statement')
|
||||||
class Meta:
|
class Meta:
|
||||||
queryset = LiaisonStatementEvent.objects.all()
|
queryset = LiaisonStatementEvent.objects.all()
|
||||||
|
serializer = api.Serializer()
|
||||||
#resource_name = 'liaisonstatementevent'
|
#resource_name = 'liaisonstatementevent'
|
||||||
filtering = {
|
filtering = {
|
||||||
"id": ALL,
|
"id": ALL,
|
||||||
|
@ -85,6 +88,7 @@ class LiaisonStatementAttachmentResource(ModelResource):
|
||||||
document = ToOneField(DocumentResource, 'document')
|
document = ToOneField(DocumentResource, 'document')
|
||||||
class Meta:
|
class Meta:
|
||||||
queryset = LiaisonStatementAttachment.objects.all()
|
queryset = LiaisonStatementAttachment.objects.all()
|
||||||
|
serializer = api.Serializer()
|
||||||
#resource_name = 'liaisonstatementattachment'
|
#resource_name = 'liaisonstatementattachment'
|
||||||
filtering = {
|
filtering = {
|
||||||
"id": ALL,
|
"id": ALL,
|
||||||
|
@ -101,6 +105,7 @@ class RelatedLiaisonStatementResource(ModelResource):
|
||||||
relationship = ToOneField(DocRelationshipNameResource, 'relationship')
|
relationship = ToOneField(DocRelationshipNameResource, 'relationship')
|
||||||
class Meta:
|
class Meta:
|
||||||
queryset = RelatedLiaisonStatement.objects.all()
|
queryset = RelatedLiaisonStatement.objects.all()
|
||||||
|
serializer = api.Serializer()
|
||||||
#resource_name = 'relatedliaisonstatement'
|
#resource_name = 'relatedliaisonstatement'
|
||||||
filtering = {
|
filtering = {
|
||||||
"id": ALL,
|
"id": ALL,
|
||||||
|
|
Loading…
Reference in a new issue