(migration_fn)
return _inner
Skips the migration if setting up a blank database
Skips the migration if setting up a blank database
Skips the migration if setting up a blank database
def skip_on_fresh_install(migration_fn):
    """Skips the migration if setting up a blank database"""
    @wraps(migration_fn)
    def _inner(*args, **kwargs):
        if settings.UNIT_TESTING or os.environ.get('CCHQ_IS_FRESH_INSTALL') == '1':
            return
        return migration_fn(*args, **kwargs)
    return _inner
def skip_on_fresh_install ( migration_fn ) : @ wraps ( migration_fn ) def _inner ( * args , * * kwargs ) : if settings . UNIT_TESTING or os . environ . get ( 'CCHQ_IS_FRESH_INSTALL' ) == '1' : return return migration_fn ( * args , * * kwargs ) return _inner