Skip to content

Commit

Permalink
#17 采购模块 (#309)
Browse files Browse the repository at this point in the history
* 查询bug修改

* bug
  • Loading branch information
eyeeco authored and Time1ess committed Jan 24, 2018
1 parent 4997ebf commit 6dbb4af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Procurement/api/supplier.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_serializer_class(self):

@list_route()
def bidding_sheet(self, request, *args, **kwargs):
queryset = self.get_queryset()
queryset = self.filter_queryset(self.get_queryset())
page = self.paginate_queryset(queryset)
context = self.get_serializer_context()
if page is not None:
Expand Down
4 changes: 2 additions & 2 deletions Procurement/filters/supplier.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ class Meta:


class SupplierFilter(filters.FilterSet):
uid = filters.CharFilter(name='uid', lookup_expr='icontains')
name = filters.CharFilter(name='name', lookup_expr='icontains')

class Meta:
model = models.Supplier
fields = ('uid',)
fields = ('name',)


class SupplyDocumentFilter(filters.FilterSet):
Expand Down

0 comments on commit 6dbb4af

Please sign in to comment.