Thanks for the help, PyFlakes.

git-svn-id: http://django-avatar.googlecode.com/svn/trunk@31 c76b2324-5f53-0410-85ac-b1078a54aeeb
This commit is contained in:
Eric Florenzano 2008-10-28 06:43:52 +00:00
parent c3fadc0377
commit 42b0361d4b
2 changed files with 1 additions and 6 deletions

View file

@ -10,7 +10,6 @@ except ImportError:
AUTO_GENERATE_AVATAR_SIZES = getattr(settings, 'AUTO_GENERATE_AVATAR_SIZES', (80,))
AVATAR_RESIZE_METHOD = getattr(settings, 'AVATAR_RESIZE_METHOD', Image.ANTIALIAS)
AVATAR_STORAGE_DIR = getattr(settings, 'AVATAR_STORAGE_DIR', 'avatars')
MAX_MEGABYTES = getattr(settings, 'AVATAR_MAX_FILESIZE', 10)
AVATAR_GRAVATAR_BACKUP = getattr(settings, 'AVATAR_GRAVATAR_BACKUP', True)
AVATAR_DEFAULT_URL = getattr(settings, 'AVATAR_DEFAULT_URL',
settings.MEDIA_URL + os.path.join(os.path.dirname(__file__), 'default.jpg'))

View file

@ -1,17 +1,13 @@
import os
import os.path
from avatar.models import Avatar, avatar_file_path
from avatar.forms import PrimaryAvatarForm, DeleteAvatarForm
from django.http import HttpResponseRedirect, Http404
from django.conf import settings
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.contrib.auth.decorators import login_required
from django.utils.translation import ugettext as _
from avatar import MAX_MEGABYTES
def _get_next(request):
"""
The part that's the least straightforward about views in this module is how they