code: def reset_sequence(app_label):
      
  
      puts("Resetting primary key sequence for {0}".format(app_label))
  
      cursor = connection.cursor()
      cmd = get_reset_command(app_label)
      cursor.execute(cmd)
docs: Reset the primary key sequence for the tables in an application.
      This is necessary if any local edits have happened to the table.