Open jlariza opened 6 years ago
Good day,
I am using the library as following
from file_resubmit.widgets import ResubmitFileWidget class FileModelForm(forms.ModelForm): class Meta: model = FileModel fields = [ ..., 'original_file', ] widgets = { 'original_file': ResubmitFileWidget }
and my settings are:
CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', }, "file_resubmit": { 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', "LOCATION": '/tmp/file_resubmit/' }, }
When a validation error raises, the file appears but it is not selected at the field; I need to reselect it again from my computer.
What am I missing to make it work? Thank you,
+1
Good day,
I am using the library as following
and my settings are:
When a validation error raises, the file appears but it is not selected at the field; I need to reselect it again from my computer.
What am I missing to make it work? Thank you,