mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-04-27 02:04:47 +00:00
views: Fix pep8 errors due to last merge
This commit is contained in:
parent
2286fa62a8
commit
6d79e8d57d
1 changed files with 0 additions and 3 deletions
|
|
@ -1,5 +1,3 @@
|
|||
#coding=utf-8
|
||||
|
||||
import os
|
||||
import uuid
|
||||
|
||||
|
|
@ -78,7 +76,6 @@ def add(request, extra_context=None, next_override=None,
|
|||
filename_parts = os.path.splitext(image_file.name)
|
||||
extension = filename_parts[1]
|
||||
filename = u'%s%s' % (unicode(uuid.uuid4()), unicode(extension))
|
||||
#filename = image_file.name
|
||||
|
||||
avatar.avatar.save(filename, image_file)
|
||||
avatar.save()
|
||||
|
|
|
|||
Loading…
Reference in a new issue