Пример #1
0
def uncensor_location_mark(modeladmin, request, queryset):
    modeladmin.message_user(request, "Post uncensored")
    queryset.update(hidden=None)
    users = {m.user.id: m.user for m in queryset}
    for uid in users:
        increment_user_post_count(users[uid])