(sender, using=None, **kwargs)
Function used by syncdb signal
Function used by syncdb signal
Function used by syncdb signal
def catch_signal(sender, using=None, **kwargs):
    """Function used by syncdb signal"""
    if using != DEFAULT_DB_ALIAS:
        # only sync for the default DB
        return

    app_name = sender.label.rsplit('.', 1)[0]
    app_label = app_name.split('.')[-1]
    plugin = get_preindex_plugin(app_label)
    if plugin:
        plugin.sync_design_docs()
def catch_signal ( sender , using = None , * * kwargs ) : if using != DEFAULT_DB_ALIAS : # only sync for the default DB return app_name = sender . label . rsplit ( '.' , 1 ) [ 0 ] app_label = app_name . split ( '.' ) [ - 1 ] plugin = get_preindex_plugin ( app_label ) if plugin : plugin . sync_design_docs ( )