Rename backref to service model

To reflect the new name. Appears this is only used by the tests.
This commit is contained in:
Chris Hill-Scott
2020-07-28 11:23:30 +01:00
parent 083573e4dc
commit e41022214f
5 changed files with 9 additions and 9 deletions

View File

@@ -664,7 +664,7 @@ class ServiceGuestList(db.Model):
id = db.Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
service_id = db.Column(UUID(as_uuid=True), db.ForeignKey('services.id'), index=True, nullable=False)
service = db.relationship('Service', backref='whitelist')
service = db.relationship('Service', backref='guest_list')
recipient_type = db.Column(guest_list_recipient_types, nullable=False)
recipient = db.Column(db.String(255), nullable=False)
created_at = db.Column(db.DateTime, default=datetime.datetime.utcnow)