Remove input file 'capture' to allow user to choose the image source

This commit is contained in:
Claude Paroz 2019-02-16 12:27:50 +01:00
parent 0a5559b4df
commit f9b567ec9d
1 changed files with 2 additions and 2 deletions

View File

@ -17,12 +17,12 @@ class IngredientInline(admin.TabularInline):
class RecetteForm(forms.ModelForm): class RecetteForm(forms.ModelForm):
photo = forms.ImageField( photo = forms.ImageField(
label="Photo", label="Photo",
widget=forms.ClearableFileInput(attrs={'capture': True, 'accept': "image/*"}), widget=forms.ClearableFileInput(attrs={'accept': "image/*"}),
required=False required=False
) )
photo_instr = forms.ImageField( photo_instr = forms.ImageField(
label="Photo des instructions", label="Photo des instructions",
widget=forms.ClearableFileInput(attrs={'capture': True, 'accept': "image/*"}), widget=forms.ClearableFileInput(attrs={'accept': "image/*"}),
required=False required=False
) )