Optimized our simultaneous role ancestry rebuilding method

This commit is contained in:
Akita Noek
2016-04-22 10:17:21 -04:00
parent ee97ef2fc8
commit 0c6dcb2337
2 changed files with 89 additions and 102 deletions
@@ -131,7 +131,7 @@ class Migration(migrations.Migration):
),
migrations.AlterIndexTogether(
name='roleancestorentry',
index_together=set([('ancestor', 'content_type_id', 'object_id'), ('ancestor', 'content_type_id', 'role_field')]),
index_together=set([('ancestor', 'content_type_id', 'object_id'), ('ancestor', 'content_type_id', 'role_field'), ('ancestor', 'descendent')]),
),
migrations.AddField(
model_name='credential',