fix callibration to accept 0.0001
This commit is contained in:
		
							parent
							
								
									ef0779de6a
								
							
						
					
					
						commit
						129500bc1d
					
				
					 4 changed files with 27 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -72,7 +72,6 @@ class InstallationReportForm(forms.ModelForm):
 | 
			
		|||
            'discharge_pipe_diameter': forms.NumberInput(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'min': '0',
 | 
			
		||||
                'step': '1',
 | 
			
		||||
                'required': True
 | 
			
		||||
            }),
 | 
			
		||||
            'usage_type': forms.Select(attrs={
 | 
			
		||||
| 
						 | 
				
			
			@ -91,19 +90,18 @@ class InstallationReportForm(forms.ModelForm):
 | 
			
		|||
            'motor_power': forms.NumberInput(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'min': '0',
 | 
			
		||||
                'step': '1',
 | 
			
		||||
                'required': True
 | 
			
		||||
            }),
 | 
			
		||||
            'pre_calibration_flow_rate': forms.NumberInput(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'min': '0',
 | 
			
		||||
                'step': '0.01',
 | 
			
		||||
                'step': '0.0001',
 | 
			
		||||
                'required': True
 | 
			
		||||
            }),
 | 
			
		||||
            'post_calibration_flow_rate': forms.NumberInput(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'min': '0',
 | 
			
		||||
                'step': '0.01',
 | 
			
		||||
                'step': '0.0001',
 | 
			
		||||
                'required': True
 | 
			
		||||
            }),
 | 
			
		||||
            'water_meter_manufacturer': forms.Select(attrs={
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue