예제 #1
0
    def handle(self, *args, **options):
        """
        Updates the plugin data for all dashboard entries of all users. Rules for update are specified in the
        plugin itself.

        This command shall be ran if significant changes have been made to the system for which the data
        shall be updated.
        """
        update_plugin_data_for_entries()
예제 #2
0
    def save_model(self, request, obj, form, change):
        """
        Updating the bookmark plugin entries on bookmarks update.
        """
        super(BookmarkAdmin, self).save_model(request, obj, form, change)

        dashboard_entries = DashboardEntry._default_manager.filter(plugin_uid__startswith='bookmark_')
        try:
            update_plugin_data_for_entries(dashboard_entries=dashboard_entries, request=request)
        except Exception as e:
            logger.debug(str(e))