Minor changes on attachment api view.

remotes/origin/enhancement/email-actions
Andrey Antukh 2013-04-09 20:38:03 +02:00
parent 217e07eefb
commit 86bc6d3bc5
1 changed files with 1 additions and 3 deletions

View File

@ -101,11 +101,9 @@ class UserStoryDetail(generics.RetrieveUpdateDestroyAPIView):
class IssuesAttachmentFilter(django_filters.FilterSet):
issue = django_filters.NumberFilter(name="object_id", lookup_type='exact')
class Meta:
model = Attachment
fields = ['project', 'issue']
fields = ['project', 'object_id']
class IssuesAttachmentList(generics.ListCreateAPIView):