add social posting function

pull/23/head
Mallory Hancock 2017-11-07 12:56:28 -08:00
parent a8998b30ee
commit 35327b3922
1 changed files with 2 additions and 0 deletions

View File

@ -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'