def make_published(self, request, queryset):
        """ Bulk action to mark selected posts as published. If
            the date_published field is empty the current time is
            saved as date_published.
            queryset must not be empty (ensured by DjangoCMS).
        """
        cnt1 = queryset.filter(
            date_published__isnull=True,
            publish=False,
        ).update(date_published=timezone.now(), publish=True)
        cnt2 = queryset.filter(
            date_published__isnull=False,
            publish=False,
        ).update(publish=True)
        messages.add_message(
            request, messages.INFO,
            __('%(updates)d entry published.',
                '%(updates)d entries published.', cnt1+cnt2) % {
                'updates':  cnt1+cnt2, })
Bulk action to mark selected posts as published. If
            the date_published field is empty the current time is
            saved as date_published.
            queryset must not be empty (ensured by DjangoCMS).