From 16c4fb6ef914f9358ed6393f09d55f8a1bdf9a58 Mon Sep 17 00:00:00 2001 From: Bradley Griffiths Date: Fri, 5 Sep 2014 12:29:08 +0100 Subject: [PATCH] Docs. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7ca7fafc..6ff04dd4 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ S3DIRECT_REGION = 'us-east-1' # Destinations in the following format: # {destination_key: (path_or_function, auth_test, [allowed_mime_types])} # 'destination_key' is the key to use for the 'dest' attribute on your widget or model field -S3DIRECT_DESTINATIONS={ +S3DIRECT_DESTINATIONS = { # Allow anybody to upload any MIME type 'misc': ('uploads/misc',), @@ -78,7 +78,7 @@ S3DIRECT_DESTINATIONS={ 'vids': ('uploads/vids', lambda u: u.is_authenticated(), ['video/mp4'],) # Allow anybody to upload any MIME type with a custom name function, eg: - 'custom_filename': (lambda old_filename: 'images/unique.jpg',), + 'custom_filename': (lambda original_filename: 'images/unique.jpg',), } ```