Mercurial > public > sg101
comparison antispam/views.py @ 689:a8dc08cc5db4
Remove unused import.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 31 Aug 2013 14:50:03 -0500 |
parents | ee87ea74d46b |
children | e932f2ecd4a7 |
comparison
equal
deleted
inserted
replaced
688:a03e0254350b | 689:a8dc08cc5db4 |
---|---|
1 """Views for the antispam application.""" | 1 """Views for the antispam application.""" |
2 | 2 |
3 from django.shortcuts import render_to_response | 3 from django.shortcuts import render_to_response |
4 from django.template import RequestContext | 4 from django.template import RequestContext |
5 | |
6 import bio.models | |
7 | 5 |
8 | 6 |
9 def suspended(request): | 7 def suspended(request): |
10 """This view checks the user's status for suspension and displays an | 8 """This view checks the user's status for suspension and displays an |
11 appropriate message. | 9 appropriate message. |
12 """ | 10 """ |
13 is_active = request.user.is_active | 11 is_active = request.user.is_active |
14 | 12 |
15 return render_to_response('antispam/suspended.html', { | 13 return render_to_response('antispam/suspended.html', { |
16 'is_active': is_active, | 14 'is_active': is_active, |
17 }, | 15 }, |
18 context_instance = RequestContext(request)) | 16 context_instance = RequestContext(request)) |