Django

Code

Ticket #1729 (closed: fixed)

Opened 3 years ago

Last modified 3 years ago

[patch] Null file path fails to generate filename

Reported by: rhettg@gmail.com Assigned to: adrian
Milestone: Component: Core framework
Version: magic-removal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

If you have a file field that is null, calling get_FIELD_filename will result in an exception from os.path.join.

I created a simliar solution already implemented in get_FIELD_url to avoid this problem.

Attachments

NullPath.diff (0.6 kB) - added by rhettg@gmail.com on 04/30/06 22:23:13.

Change History

04/30/06 22:23:13 changed by rhettg@gmail.com

  • attachment NullPath.diff added.

04/30/06 22:23:37 changed by anonymous

  • summary changed from Null file path fails to generate filename to [patch] Null file path fails to generate filename.

05/04/06 22:00:00 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [2839]) Fixed #1729 -- Changed get_FIELD_filename() to return an empty string when field fiel's value is null. Thanks, rhettg@gmail.com


Add/Change #1729 ([patch] Null file path fails to generate filename)




Change Properties
Action