From 35327b392262bc8391231b64a14f1bfb4a16f158 Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Tue, 7 Nov 2017 12:56:28 -0800 Subject: [PATCH] add social posting function --- ttadmin/users/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ttadmin/users/admin.py b/ttadmin/users/admin.py index 2ff3ce9..82ff673 100644 --- a/ttadmin/users/admin.py +++ b/ttadmin/users/admin.py @@ -3,6 +3,7 @@ from django.contrib.auth.models import User from django.contrib.auth.models import Group from .models import Townie, Pubkey +from common.social import post_to_social admin.site.unregister(User) admin.site.unregister(Group) @@ -15,6 +16,7 @@ def bulk_review(madmin, req, qs): for townie in qs: townie.reviewed = True townie.save() + post_to_social(qs) bulk_review.short_description = 'mark selected townies as reviewed'