Add get method and cache_control to OrdersHostingListView

This commit is contained in:
PCoder 2017-12-27 09:09:54 +01:00
parent 14ff876fbf
commit 639e4cf414
1 changed files with 4 additions and 0 deletions

View File

@ -923,6 +923,10 @@ class OrdersHostingListView(LoginRequiredMixin, ListView):
self.queryset = HostingOrder.objects.filter(customer__user=user)
return super(OrdersHostingListView, self).get_queryset()
@cache_control(no_cache=True, must_revalidate=True, no_store=True)
def get(self, request, *args, **kwargs):
return super(OrdersHostingListView, self).get(request, *args, **kwargs)
class OrdersHostingDeleteView(LoginRequiredMixin, DeleteView):
login_url = reverse_lazy('hosting:login')