Skip to content
Snippets Groups Projects
Commit eff7421a authored by Sabine Schröder's avatar Sabine Schröder
Browse files

#5: small bug fix added (and a better filled test database)

parent 7f8b4055
No related branches found
No related tags found
No related merge requests found
Pipeline #42431 passed
......@@ -30,7 +30,7 @@ def create_organisation(db: Session, organisation: OrganisationCreate):
db.add(db_organisation)
result = db.commit()
db.refresh(db_organisation)
db_contact = models.Contact(person_id=0,organisation_id=db_organisation)
db_contact = models.Contact(person_id=0,organisation_id=db_organisation.id)
db.add(db_contact)
result = db.commit()
db.refresh(db_contact)
......
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment