File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ class Job(CommonColumns, Base):
113
113
pid = Column (Integer )
114
114
idempotency_token = Column (String (256 ))
115
115
notifications_config_id = Column (String (36 ), ForeignKey ("notifications_config.id" ))
116
- notifications_config = relationship ("NotificationsConfig" )
116
+ notifications_config = relationship ("NotificationsConfig" , lazy = "joined" )
117
117
118
118
119
119
class JobDefinition (CommonColumns , Base ):
@@ -125,7 +125,7 @@ class JobDefinition(CommonColumns, Base):
125
125
create_time = Column (Integer , default = get_utc_timestamp )
126
126
active = Column (Boolean , default = True )
127
127
notifications_config_id = Column (String (36 ), ForeignKey ("notifications_config.id" ))
128
- notifications_config = relationship ("NotificationsConfig" )
128
+ notifications_config = relationship ("NotificationsConfig" , lazy = "joined" )
129
129
130
130
131
131
def create_tables (db_url , drop_tables = False ):
You can’t perform that action at this time.
0 commit comments