Move the login form context out of the profiles app

This commit is contained in:
Trever Fischer
2012-03-05 00:44:45 -05:00
parent d6704d981b
commit 75cab27046
3 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,11 @@
import models
from django.contrib.auth.forms import AuthenticationForm
def random_quote(request):
quote = models.Quote.objects.order_by('?')
if len(quote) > 0:
return {'quote': quote[0]}
return {}
def login_form(request):
return {'login_form': AuthenticationForm()}

View File

@@ -1,3 +0,0 @@
from django.contrib.auth.forms import AuthenticationForm
def login_form(request):
return {'login_form': AuthenticationForm()}

View File

@@ -168,7 +168,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.static",
"django.contrib.messages.context_processors.messages",
"local.context.random_quote",
"profiles.context.login_form",
"local.context.login_form",
"minecraft.context.server_info",
"appversion.context.git_version"
)