Opened 19 years ago
Closed 18 years ago
#1564 closed defect (invalid)
Filename not accessible post save
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | magic-removal |
Severity: | major | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
def save(self): super(Image, self).save() assert False, self.get_image_filename() # ( get_FOO_filename() ) gives no filename pass
Attachments (1)
Change History (7)
comment:1 by , 19 years ago
comment:3 by , 19 years ago
This does not give a filename:
def save(self): super(Image, self).save() i = Image.objects.get(id__exact=self.id) assert False, i.get_image_filename() pass
Either does this:
def save(self): super(Image, self).save() tbl = getattr(self._meta,'db_table') cursor = connection.cursor() cursor.execute("SELECT * FROM %s where id=%i" % (tbl, self.id) ) row = cursor.fetchone() assert False, row pass
by , 19 years ago
Attachment: | manipulators.diff added |
---|
Diff to save file before saving in manipulator
comment:6 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
marked as invalid due to the lack of information and the age of the ticket. If this is still a problem, please reopen it.
Note:
See TracTickets
for help on using tickets.
Only get the upload to path, but no filename.