exclude notifications from job

was being lazily loaded to get notification ids, so every time a job is loaded it would potentially select thousands of notifications from the database
This commit is contained in:
Leo Hemsted
2016-06-10 15:37:05 +01:00
parent d0d2d0dbc8
commit 7083be429a

View File

@@ -160,6 +160,7 @@ class JobSchema(BaseSchema):
class Meta:
model = models.Job
exclude = ('notifications',)
class RequestVerifyCodeSchema(ma.Schema):