Stop passing newstyle kwarg to Form.validate()
				
					
				
			no longer needed
This commit is contained in:
		
							parent
							
								
									92c817dfda
								
							
						
					
					
						commit
						df93a573bf
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -340,7 +340,7 @@ class ExportableInvoiceView(MasterView):
 | 
			
		|||
        model = self.model
 | 
			
		||||
 | 
			
		||||
        form = forms.Form(schema=ToggleInvoices(), request=self.request)
 | 
			
		||||
        if not form.validate(newstyle=True):
 | 
			
		||||
        if not form.validate():
 | 
			
		||||
            return {'error': "Form did not validate"}
 | 
			
		||||
        uuids = form.validated['uuids'].split(',')
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -368,7 +368,7 @@ class ExportableInvoiceView(MasterView):
 | 
			
		|||
        model = self.model
 | 
			
		||||
 | 
			
		||||
        form = forms.Form(schema=ToggleInvoices(), request=self.request)
 | 
			
		||||
        if not form.validate(newstyle=True):
 | 
			
		||||
        if not form.validate():
 | 
			
		||||
            return {'error': "Form did not validate"}
 | 
			
		||||
        uuids = form.validated['uuids'].split(',')
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue