mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-04 02:53:06 +00:00 
			
		
		
		
	Post request management
This commit is contained in:
		@@ -725,7 +725,7 @@ class CounterClick(CounterTabsMixin, CanViewMixin, DetailView):
 | 
			
		||||
 | 
			
		||||
    def refill(self, request):
 | 
			
		||||
        """Refill the customer's account"""
 | 
			
		||||
        if self.get_object().type == "BAR":
 | 
			
		||||
        if self.get_object().type == "BAR" and self.object.can_refill():
 | 
			
		||||
            form = RefillForm(request.POST)
 | 
			
		||||
            if form.is_valid():
 | 
			
		||||
                form.instance.counter = self.object
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user