Merge "Clean destroy for project quota"

This commit is contained in:
Jenkins 2013-09-02 12:00:23 +00:00 committed by Gerrit Code Review
commit 4bf72c3df3

View File

@ -3210,6 +3210,11 @@ def quota_destroy_all_by_project(context, project_id):
filter_by(project_id=project_id).\
soft_delete(synchronize_session=False)
model_query(context, models.ProjectUserQuota, session=session,
read_deleted="no").\
filter_by(project_id=project_id).\
soft_delete(synchronize_session=False)
model_query(context, models.QuotaUsage,
session=session, read_deleted="no").\
filter_by(project_id=project_id).\