Commit 160137e5 authored by Diederik van der Boor's avatar Diederik van der Boor
Browse files

comment style fixes

parent 8c75327d
......@@ -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)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment