diff --git a/avatar/models.py b/avatar/models.py index 8c5d38f..800ee10 100644 --- a/avatar/models.py +++ b/avatar/models.py @@ -42,11 +42,11 @@ def avatar_path_handler( # Filename already stored in database filename = instance.avatar.name if ext: - (root, oldext) = os.path.splitext(filename) + root, oldext = os.path.splitext(filename) filename = root + "." + ext.lower() else: # File doesn't exist yet - (root, oldext) = os.path.splitext(filename) + root, oldext = os.path.splitext(filename) if settings.AVATAR_HASH_FILENAMES: if settings.AVATAR_RANDOMIZE_HASHES: root = binascii.hexlify(os.urandom(16)).decode("ascii") diff --git a/test_proj/manage.py b/test_proj/manage.py index 1844990..f876487 100755 --- a/test_proj/manage.py +++ b/test_proj/manage.py @@ -1,5 +1,6 @@ #!/usr/bin/env python """Django's command-line utility for administrative tasks.""" + import os import sys