Updated liaison resources file.

- Legacy-Id: 10193
This commit is contained in:
Henrik Levkowetz 2015-10-13 16:36:29 +00:00
parent 054c24bea4
commit 9aade6b558

View file

@ -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.fields import ToOneField, ToManyField # pyflakes:ignore
from tastypie.constants import ALL, ALL_WITH_RELATIONS # pyflakes:ignore
@ -52,10 +52,12 @@ class LiaisonStatementGroupContactsResource(ModelResource):
group = ToOneField(GroupResource, 'group')
class Meta:
queryset = LiaisonStatementGroupContacts.objects.all()
serializer = api.Serializer()
#resource_name = 'liaisonstatementgroupcontacts'
filtering = {
"id": ALL,
"contacts": ALL,
"cc_contacts": ALL,
"group": ALL_WITH_RELATIONS,
}
api.liaisons.register(LiaisonStatementGroupContactsResource())
@ -68,6 +70,7 @@ class LiaisonStatementEventResource(ModelResource):
statement = ToOneField(LiaisonStatementResource, 'statement')
class Meta:
queryset = LiaisonStatementEvent.objects.all()
serializer = api.Serializer()
#resource_name = 'liaisonstatementevent'
filtering = {
"id": ALL,
@ -85,6 +88,7 @@ class LiaisonStatementAttachmentResource(ModelResource):
document = ToOneField(DocumentResource, 'document')
class Meta:
queryset = LiaisonStatementAttachment.objects.all()
serializer = api.Serializer()
#resource_name = 'liaisonstatementattachment'
filtering = {
"id": ALL,
@ -101,6 +105,7 @@ class RelatedLiaisonStatementResource(ModelResource):
relationship = ToOneField(DocRelationshipNameResource, 'relationship')
class Meta:
queryset = RelatedLiaisonStatement.objects.all()
serializer = api.Serializer()
#resource_name = 'relatedliaisonstatement'
filtering = {
"id": ALL,