Add get method and cache_control to OrdersHostingListView
This commit is contained in:
		
					parent
					
						
							
								14ff876fbf
							
						
					
				
			
			
				commit
				
					
						639e4cf414
					
				
			
		
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -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') | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue