Opened 10 years ago

Closed 9 years ago

#2233 closed enhancement (invalid)

[patch] Model save method should have acces to file fields details during save

Reported by: arnihr@… Owned by: nobody
Component: Core (Other) Version: master
Severity: minor Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I think you should be able to manipulate file fields by overriding save method on a model. If you override the save method you cannot get file field information such as file size or dimensions.

Attachments (1)

manipulators.py (954 bytes) - added by arnihr@… 10 years ago.
Fixes issue.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by arnihr@…

Attachment: manipulators.py added

Fixes issue.

comment:1 Changed 10 years ago by anonymous

Summary: Model save method should have acces to file fields details during save[patch] Model save method should have acces to file fields details during save

comment:2 Changed 10 years ago by anonymous

priority: normalhigh

Bump. This is causing a few some problems.

comment:3 Changed 10 years ago by Adrian Holovaty

priority: highnormal

comment:4 Changed 10 years ago by anonymous

Version: magic-removalSVN

comment:5 Changed 10 years ago by Simon G. <dev@…>

Triage Stage: UnreviewedDesign decision needed

comment:6 Changed 9 years ago by James Bennett

Resolution: invalid
Status: newclosed

Manipulators are deprecated, so this patch is invalid, and I _think_ the solution is to call the superclass save before attempting to do anything fancy with the file.

Note: See TracTickets for help on using tickets.
Back to Top