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):
|
||||
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…
Reference in a new issue