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()}