development branch created to preserve working deploy project
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -38,8 +38,18 @@ class ClientPreinfoView(LoginRequiredMixin, UserPassesTestMixin, ListView):
|
||||
def get_queryset(self):
|
||||
queryset = super().get_queryset()
|
||||
user = self.request.user
|
||||
result = filter_queryset_by_user(queryset, user)
|
||||
return result
|
||||
queryset = filter_queryset_by_user(queryset, user)
|
||||
|
||||
data_filter = self.request.GET.get('filter')
|
||||
if data_filter == 'all':
|
||||
queryset = queryset.filter(deleted=False)
|
||||
else:
|
||||
queryset = queryset.filter(received=False, deleted=False)
|
||||
|
||||
queryset = queryset.order_by('-created_on')
|
||||
|
||||
return queryset
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user