diff --git a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001.py b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001.py index 20abc244f1..d14eca46a6 100644 --- a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001.py +++ b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001.py @@ -76,24 +76,6 @@ def create_heroes(): session.refresh(team_wakaland) print("Team Wakaland:", team_wakaland) - hero_tarantula = Hero(name="Tarantula", secret_name="Natalia Roman-on", age=32) - hero_dr_weird = Hero(name="Dr. Weird", secret_name="Steve Weird", age=36) - hero_cap = Hero( - name="Captain North America", secret_name="Esteban Rogelios", age=93 - ) - - team_preventers.heroes.append(hero_tarantula) - team_preventers.heroes.append(hero_dr_weird) - team_preventers.heroes.append(hero_cap) - session.add(team_preventers) - session.commit() - session.refresh(hero_tarantula) - session.refresh(hero_dr_weird) - session.refresh(hero_cap) - print("Preventers new hero:", hero_tarantula) - print("Preventers new hero:", hero_dr_weird) - print("Preventers new hero:", hero_cap) - def delete_team(): with Session(engine) as session: diff --git a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001_py310.py b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001_py310.py index 159e11ac11..1069be9149 100644 --- a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001_py310.py +++ b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001_py310.py @@ -72,24 +72,6 @@ def create_heroes(): session.refresh(team_wakaland) print("Team Wakaland:", team_wakaland) - hero_tarantula = Hero(name="Tarantula", secret_name="Natalia Roman-on", age=32) - hero_dr_weird = Hero(name="Dr. Weird", secret_name="Steve Weird", age=36) - hero_cap = Hero( - name="Captain North America", secret_name="Esteban Rogelios", age=93 - ) - - team_preventers.heroes.append(hero_tarantula) - team_preventers.heroes.append(hero_dr_weird) - team_preventers.heroes.append(hero_cap) - session.add(team_preventers) - session.commit() - session.refresh(hero_tarantula) - session.refresh(hero_dr_weird) - session.refresh(hero_cap) - print("Preventers new hero:", hero_tarantula) - print("Preventers new hero:", hero_dr_weird) - print("Preventers new hero:", hero_cap) - def delete_team(): with Session(engine) as session: diff --git a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001_py39.py b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001_py39.py index b0afc68624..9a401e8b21 100644 --- a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001_py39.py +++ b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial001_py39.py @@ -76,24 +76,6 @@ def create_heroes(): session.refresh(team_wakaland) print("Team Wakaland:", team_wakaland) - hero_tarantula = Hero(name="Tarantula", secret_name="Natalia Roman-on", age=32) - hero_dr_weird = Hero(name="Dr. Weird", secret_name="Steve Weird", age=36) - hero_cap = Hero( - name="Captain North America", secret_name="Esteban Rogelios", age=93 - ) - - team_preventers.heroes.append(hero_tarantula) - team_preventers.heroes.append(hero_dr_weird) - team_preventers.heroes.append(hero_cap) - session.add(team_preventers) - session.commit() - session.refresh(hero_tarantula) - session.refresh(hero_dr_weird) - session.refresh(hero_cap) - print("Preventers new hero:", hero_tarantula) - print("Preventers new hero:", hero_dr_weird) - print("Preventers new hero:", hero_cap) - def delete_team(): with Session(engine) as session: diff --git a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002.py b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002.py index a827f242fe..f2bedb7e69 100644 --- a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002.py +++ b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002.py @@ -76,24 +76,6 @@ def create_heroes(): session.refresh(team_wakaland) print("Team Wakaland:", team_wakaland) - hero_tarantula = Hero(name="Tarantula", secret_name="Natalia Roman-on", age=32) - hero_dr_weird = Hero(name="Dr. Weird", secret_name="Steve Weird", age=36) - hero_cap = Hero( - name="Captain North America", secret_name="Esteban Rogelios", age=93 - ) - - team_preventers.heroes.append(hero_tarantula) - team_preventers.heroes.append(hero_dr_weird) - team_preventers.heroes.append(hero_cap) - session.add(team_preventers) - session.commit() - session.refresh(hero_tarantula) - session.refresh(hero_dr_weird) - session.refresh(hero_cap) - print("Preventers new hero:", hero_tarantula) - print("Preventers new hero:", hero_dr_weird) - print("Preventers new hero:", hero_cap) - def delete_team(): with Session(engine) as session: diff --git a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002_py310.py b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002_py310.py index 1d1cd84106..54607f14d2 100644 --- a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002_py310.py +++ b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002_py310.py @@ -74,24 +74,6 @@ def create_heroes(): session.refresh(team_wakaland) print("Team Wakaland:", team_wakaland) - hero_tarantula = Hero(name="Tarantula", secret_name="Natalia Roman-on", age=32) - hero_dr_weird = Hero(name="Dr. Weird", secret_name="Steve Weird", age=36) - hero_cap = Hero( - name="Captain North America", secret_name="Esteban Rogelios", age=93 - ) - - team_preventers.heroes.append(hero_tarantula) - team_preventers.heroes.append(hero_dr_weird) - team_preventers.heroes.append(hero_cap) - session.add(team_preventers) - session.commit() - session.refresh(hero_tarantula) - session.refresh(hero_dr_weird) - session.refresh(hero_cap) - print("Preventers new hero:", hero_tarantula) - print("Preventers new hero:", hero_dr_weird) - print("Preventers new hero:", hero_cap) - def delete_team(): with Session(engine) as session: diff --git a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002_py39.py b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002_py39.py index f0509089ad..e3f09f82bd 100644 --- a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002_py39.py +++ b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial002_py39.py @@ -76,24 +76,6 @@ def create_heroes(): session.refresh(team_wakaland) print("Team Wakaland:", team_wakaland) - hero_tarantula = Hero(name="Tarantula", secret_name="Natalia Roman-on", age=32) - hero_dr_weird = Hero(name="Dr. Weird", secret_name="Steve Weird", age=36) - hero_cap = Hero( - name="Captain North America", secret_name="Esteban Rogelios", age=93 - ) - - team_preventers.heroes.append(hero_tarantula) - team_preventers.heroes.append(hero_dr_weird) - team_preventers.heroes.append(hero_cap) - session.add(team_preventers) - session.commit() - session.refresh(hero_tarantula) - session.refresh(hero_dr_weird) - session.refresh(hero_cap) - print("Preventers new hero:", hero_tarantula) - print("Preventers new hero:", hero_dr_weird) - print("Preventers new hero:", hero_cap) - def delete_team(): with Session(engine) as session: diff --git a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003.py b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003.py index c7a52679f7..4863c10249 100644 --- a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003.py +++ b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003.py @@ -79,24 +79,6 @@ def create_heroes(): session.refresh(team_wakaland) print("Team Wakaland:", team_wakaland) - hero_tarantula = Hero(name="Tarantula", secret_name="Natalia Roman-on", age=32) - hero_dr_weird = Hero(name="Dr. Weird", secret_name="Steve Weird", age=36) - hero_cap = Hero( - name="Captain North America", secret_name="Esteban Rogelios", age=93 - ) - - team_preventers.heroes.append(hero_tarantula) - team_preventers.heroes.append(hero_dr_weird) - team_preventers.heroes.append(hero_cap) - session.add(team_preventers) - session.commit() - session.refresh(hero_tarantula) - session.refresh(hero_dr_weird) - session.refresh(hero_cap) - print("Preventers new hero:", hero_tarantula) - print("Preventers new hero:", hero_dr_weird) - print("Preventers new hero:", hero_cap) - def delete_team(): with Session(engine) as session: diff --git a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003_py310.py b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003_py310.py index 80b2ea845b..55768a7f89 100644 --- a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003_py310.py +++ b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003_py310.py @@ -77,24 +77,6 @@ def create_heroes(): session.refresh(team_wakaland) print("Team Wakaland:", team_wakaland) - hero_tarantula = Hero(name="Tarantula", secret_name="Natalia Roman-on", age=32) - hero_dr_weird = Hero(name="Dr. Weird", secret_name="Steve Weird", age=36) - hero_cap = Hero( - name="Captain North America", secret_name="Esteban Rogelios", age=93 - ) - - team_preventers.heroes.append(hero_tarantula) - team_preventers.heroes.append(hero_dr_weird) - team_preventers.heroes.append(hero_cap) - session.add(team_preventers) - session.commit() - session.refresh(hero_tarantula) - session.refresh(hero_dr_weird) - session.refresh(hero_cap) - print("Preventers new hero:", hero_tarantula) - print("Preventers new hero:", hero_dr_weird) - print("Preventers new hero:", hero_cap) - def delete_team(): with Session(engine) as session: diff --git a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003_py39.py b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003_py39.py index 99019454a8..787567cee2 100644 --- a/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003_py39.py +++ b/docs_src/tutorial/relationship_attributes/delete_records_relationship/tutorial003_py39.py @@ -79,24 +79,6 @@ def create_heroes(): session.refresh(team_wakaland) print("Team Wakaland:", team_wakaland) - hero_tarantula = Hero(name="Tarantula", secret_name="Natalia Roman-on", age=32) - hero_dr_weird = Hero(name="Dr. Weird", secret_name="Steve Weird", age=36) - hero_cap = Hero( - name="Captain North America", secret_name="Esteban Rogelios", age=93 - ) - - team_preventers.heroes.append(hero_tarantula) - team_preventers.heroes.append(hero_dr_weird) - team_preventers.heroes.append(hero_cap) - session.add(team_preventers) - session.commit() - session.refresh(hero_tarantula) - session.refresh(hero_dr_weird) - session.refresh(hero_cap) - print("Preventers new hero:", hero_tarantula) - print("Preventers new hero:", hero_dr_weird) - print("Preventers new hero:", hero_cap) - def delete_team(): with Session(engine) as session: