Move the login form context out of the profiles app
This commit is contained in:
@@ -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()}
|
||||
|
Reference in New Issue
Block a user