add meter model for smart meter
This commit is contained in:
		
							parent
							
								
									02415f4dee
								
							
						
					
					
						commit
						68cf7761d7
					
				
					 3 changed files with 67 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -20,7 +20,7 @@ class InstallationReportForm(forms.ModelForm):
 | 
			
		|||
        model = InstallationReport
 | 
			
		||||
        fields = [
 | 
			
		||||
            'visited_date', 'new_water_meter_serial', 'seal_number',
 | 
			
		||||
            'utm_x', 'utm_y', 'meter_type', 'meter_size',
 | 
			
		||||
            'utm_x', 'utm_y', 'meter_type', 'meter_size', 'meter_model',
 | 
			
		||||
            'discharge_pipe_diameter', 'usage_type', 'exploitation_license_number',
 | 
			
		||||
            'motor_power', 'pre_calibration_flow_rate', 'post_calibration_flow_rate',
 | 
			
		||||
            'water_meter_manufacturer', 'sim_number', 'driving_force',
 | 
			
		||||
| 
						 | 
				
			
			@ -62,6 +62,13 @@ class InstallationReportForm(forms.ModelForm):
 | 
			
		|||
            'meter_size': forms.TextInput(attrs={
 | 
			
		||||
                'class': 'form-control'
 | 
			
		||||
            }),
 | 
			
		||||
            'meter_model': forms.Select(attrs={
 | 
			
		||||
                'class': 'form-select'
 | 
			
		||||
            }, choices=[
 | 
			
		||||
                ('', 'انتخاب کنید'),
 | 
			
		||||
                ('A', 'A'),
 | 
			
		||||
                ('B', 'B')
 | 
			
		||||
            ]),
 | 
			
		||||
            'discharge_pipe_diameter': forms.NumberInput(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'min': '0',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue