Hello everybody,
I've a class Document:
class Document(models.Model):
doc = models.FileField(...)
pub = models.ForeignKey(Publication)
I've a inlineformset_factory class:
DocumentFormset = inlineformset_factory(Publication, Document)
In my view, I treat the form correctly an send it to the template.
In my template, I use the {{ formset }} tag to display the form.
When no files have been uploaded, everthing is fine and I can upload
new files. But if I want to edit the previously uploaded files, I have
empty text input with delete checkboxes, plus the number of extra
empty forms I defined with extra keyword.
My question is: how to display the name of the previously uploded
files instead of having an empty input?
Thank you by advance,
Gontran
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.