#12532: empty inline forms with FileField are never ignored
-------------------------------------------+--------------------------------
Reporter: gogna | Owner: nobody
Status: closed | Milestone:
Component: django.contrib.admin | Version: 1.1
Resolution: worksforme | Keywords: inline admin
formsets
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by kmtracey):
* status: new => closed
* needs_better_patch: => 0
* resolution: => worksforme
* needs_tests: => 0
* needs_docs: => 0
Comment:
I cannot recreate what you describe. Tried both Django 1.1.1 and 1.2
alpha. In both cases I can save an album with empty inlines without
problem. I can edit an existing Album that has one inline, change the
Title of the inline song but not specify a file to re-upload, and it keeps
the existing value for the uploaded file.
I suspect you have abbreviated/simplified whatever you are really doing
beyond the point where the problem that you are seeing can be observed.
Taking exactly what you post above and attempting to use it verbatim
requires several fixups (missing upload_to on the !FileField, missing
models in front of the field types, `models.ModelAdmin` instead of
`admin.ModelAdmin`) before it will work at all. I'm guessing what you
actually are using does not have these errors but does have something else
that is essential to causing the problem.
--
Ticket URL: <http://code.djangoproject.com/ticket/12532#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en.