bgneal@215: """Views for the antispam application.""" bgneal@215: bgneal@215: from django.shortcuts import render_to_response bgneal@215: from django.template import RequestContext bgneal@215: bgneal@215: import bio.models bgneal@215: bgneal@215: bgneal@215: def suspended(request): bgneal@215: """This view checks the user's status for suspension and displays an bgneal@215: appropriate message. bgneal@215: """ bgneal@215: is_active = request.user.is_active bgneal@215: bgneal@215: return render_to_response('antispam/suspended.html', { bgneal@215: 'is_active': is_active, bgneal@215: }, bgneal@215: context_instance = RequestContext(request))