summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2015-12-23 17:08:40 +0000
committerTim Graham <timograham@gmail.com>2015-12-24 09:54:33 -0500
commit77b8d8cb6d6d6345f479c68c4892291c1492ba7e (patch)
treea42ca617d80dcaaa3db36069688e141e154c4dc1 /docs/ref/models
parenta856555df2a1b4ddad8bf21243de0bcbcc12fb20 (diff)
Discouraged use of /tmp with predictable names.
The use of predictable filenames in /tmp often leads to symlink attacks so remove the most obvious use of them in the docs.
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/fields.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 033ae14778..6320f20e24 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -783,7 +783,7 @@ Python file object like this::
from django.core.files import File
# Open an existing file using Python's built-in open()
- f = open('/tmp/hello.world')
+ f = open('/path/to/hello.world')
myfile = File(f)
Or you can construct one from a Python string like this::