As per PR comments:

- Remove Organisation.services
- added backref='services' to Services.organisation relationship and removed redundant foreign_keys argument.
This commit is contained in:
Rebecca Law
2019-08-14 13:23:20 +01:00
parent c4127d0508
commit fdee6cbfb2
2 changed files with 1 additions and 8 deletions

View File

@@ -293,7 +293,6 @@ def dao_create_service(
insert_service_sms_sender(service, current_app.config['FROM_NUMBER'])
if organisation:
# service.organisation = organisation
service.organisation_id = organisation.id
service.organisation_type = organisation.organisation_type
if organisation.email_branding: