Remove input file 'capture' to allow user to choose the image source
This commit is contained in:
parent
0a5559b4df
commit
f9b567ec9d
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue