comparison gpp/news/views.py @ 259:75ea1a8be7f2

Fix some old import problems where I used 'from django.contrib import auth' instead of 'from django.contrib.auth.models import User'. Also some formatting changes while I was in there.
author Brian Neal <bgneal@gmail.com>
date Tue, 21 Sep 2010 23:49:05 +0000
parents 27bee3ac85e6
children 24f1230f3ee3
comparison
equal deleted inserted replaced
258:f9a9b4014d5b 259:75ea1a8be7f2
4 4
5 import datetime 5 import datetime
6 from django.shortcuts import render_to_response 6 from django.shortcuts import render_to_response
7 from django.template import RequestContext 7 from django.template import RequestContext
8 from django.template.loader import render_to_string 8 from django.template.loader import render_to_string
9 from django.contrib import auth
10 from django.http import HttpResponseRedirect 9 from django.http import HttpResponseRedirect
11 from django.contrib.auth.decorators import login_required 10 from django.contrib.auth.decorators import login_required
12 from django.shortcuts import get_object_or_404 11 from django.shortcuts import get_object_or_404
13 from django.core.paginator import InvalidPage 12 from django.core.paginator import InvalidPage
14 from django.core.urlresolvers import reverse 13 from django.core.urlresolvers import reverse