add social posting function
parent
a8998b30ee
commit
35327b3922
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue