예제 #1
0
 def handle(self, *args, **options):
     with transaction.atomic():
         counts = [{'name': str(x['name']), 'count': len(x['entries'])} for x in get_all_pending_moderations()]
         if len(counts):
             # Generate an email and send it off
             send_template_mail(settings.NOTIFICATION_FROM,
                                settings.NOTIFICATION_EMAIL,
                                "PostgreSQL moderation report: %s" % datetime.now(),
                                "core/moderation_report.txt",
                                {
                                    'items': counts,
                                })
예제 #2
0
def admin_pending(request):
	return render_to_response('core/admin_pending.html', {
			'app_list': get_all_pending_moderations(),
			}, RequestContext(request))
예제 #3
0
def admin_pending(request):
    return render(request, 'core/admin_pending.html', {
        'app_list': get_all_pending_moderations(),
    })
예제 #4
0
파일: views.py 프로젝트: jkatz/pgweb
def admin_pending(request):
    return render(request, 'core/admin_pending.html', {
        'app_list': get_all_pending_moderations(),
    })
예제 #5
0
def admin_pending(request):
	return render_to_response('core/admin_pending.html', {
			'app_list': get_all_pending_moderations(),
			}, RequestContext(request))
예제 #6
0
파일: views.py 프로젝트: yh453926638/pgweb
def admin_pending(request):
    return render_to_response(
        "core/admin_pending.html", {"app_list": get_all_pending_moderations()}, RequestContext(request)
    )