Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Django Private Storage
Commits
160137e5
Commit
160137e5
authored
Feb 06, 2018
by
Diederik van der Boor
Browse files
comment style fixes
parent
8c75327d
Changes
1
Hide whitespace changes
Inline
Side-by-side
private_storage/fields.py
View file @
160137e5
...
...
@@ -73,13 +73,13 @@ class PrivateFileField(models.FileField):
return
os
.
path
.
normpath
(
os
.
path
.
join
(
*
dirs
))
def
get_directory_name
(
self
):
'''
"""
Added for compatibility with Django 2.0 where this method was removed
'''
"""
return
os
.
path
.
normpath
(
force_text
(
datetime
.
datetime
.
now
().
strftime
(
force_str
(
self
.
upload_to
))))
def
get_filename
(
self
,
filename
):
'''
"""
Added for compatibility with Django 2.0 where this method was removed
'''
"""
return
os
.
path
.
normpath
(
self
.
storage
.
get_valid_name
(
os
.
path
.
basename
(
filename
)))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment