Skip to content

Instantly share code, notes, and snippets.

@neoyagami
Created February 5, 2019 15:53
Show Gist options
  • Select an option

  • Save neoyagami/5ee4a61745a4fffe4e1794db9029cecf to your computer and use it in GitHub Desktop.

Select an option

Save neoyagami/5ee4a61745a4fffe4e1794db9029cecf to your computer and use it in GitHub Desktop.
def setUp(self):
with connection.cursor() as cursor:
cursor.execute(" alter sequence auth_user_id_seq restart with 1;")
#reseteamos el id cuando lost test corren en postgres, repetir para las demas secuencias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment