Remove input file 'capture' to allow user to choose the image source
This commit is contained in:
		
							parent
							
								
									0a5559b4df
								
							
						
					
					
						commit
						f9b567ec9d
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -17,12 +17,12 @@ class IngredientInline(admin.TabularInline):
 | 
			
		|||
class RecetteForm(forms.ModelForm):
 | 
			
		||||
    photo = forms.ImageField(
 | 
			
		||||
        label="Photo",
 | 
			
		||||
        widget=forms.ClearableFileInput(attrs={'capture': True, 'accept': "image/*"}),
 | 
			
		||||
        widget=forms.ClearableFileInput(attrs={'accept': "image/*"}),
 | 
			
		||||
        required=False
 | 
			
		||||
    )
 | 
			
		||||
    photo_instr = forms.ImageField(
 | 
			
		||||
        label="Photo des instructions",
 | 
			
		||||
        widget=forms.ClearableFileInput(attrs={'capture': True, 'accept': "image/*"}),
 | 
			
		||||
        widget=forms.ClearableFileInput(attrs={'accept': "image/*"}),
 | 
			
		||||
        required=False
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue