Reset the primary key sequence for the tables in an application.
    This is necessary if any local edits have happened to the table.

def reset_sequence(app_label):
    """
    Reset the primary key sequence for the tables in an application.
    This is necessary if any local edits have happened to the table.
    """

    puts("Resetting primary key sequence for {0}".format(app_label))

    cursor = connection.cursor()
    cmd = get_reset_command(app_label)
    cursor.execute(cmd)