Opened 18 years ago

Closed 17 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: dev
Severity: minor Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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@… 18 years ago.
Fixes issue.

Download all attachments as: .zip

Change History (7)

by arnihr@…, 18 years ago

Attachment: manipulators.py added

Fixes issue.

comment:1 by anonymous, 18 years ago

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 by anonymous, 18 years ago

priority: normalhigh

Bump. This is causing a few some problems.

comment:3 by Adrian Holovaty, 18 years ago

priority: highnormal

comment:4 by anonymous, 18 years ago

Version: magic-removalSVN

comment:5 by Simon G. <dev@…>, 18 years ago

Triage Stage: UnreviewedDesign decision needed

comment:6 by James Bennett, 17 years ago

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