bgneal@215: """Views for the antispam application.""" bgneal@215: bgneal@1032: from django.shortcuts import render 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@1032: return render(request, 'antispam/suspended.html', { bgneal@215: 'is_active': is_active, bgneal@1032: })