#4339: Override an existing file, using Model.save_FIELD_file method,
----------------------------------+-----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Database wrapper
Version: SVN | Resolution:
Keywords: FileField db | Stage: Design decision
needed
Has_patch: 1 | Needs_docs: 1
Needs_tests: 0 | Needs_better_patch: 1
----------------------------------+-----------------------------------------
Comment (by Marc Fargas <[EMAIL PROTECTED]>):
I marked as accepted because this patch does not **automatically**
overwrite a file, you need to override a method on your model, in which
case you are supposed to know what you are doing and pass the right
parameter to the super() method.
On the other side, not having this means that anybody that wants to
overwrite files needs to write his/her own method checking for file
existence, etc. Which doesn't seem very DRY.
Just my 0.02, well 0.002 :P
--
Ticket URL: <http://code.djangoproject.com/ticket/4339#comment:5>
Django Code <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
-~----------~----~----~----~------~----~------~--~---