summaryrefslogtreecommitdiff
path: root/gnowsys-ndf/gnowsys_ndf/ndf/management/commands/sync_existing_documents.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/management/commands/sync_existing_documents.py')
-rw-r--r--gnowsys-ndf/gnowsys_ndf/ndf/management/commands/sync_existing_documents.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/management/commands/sync_existing_documents.py b/gnowsys-ndf/gnowsys_ndf/ndf/management/commands/sync_existing_documents.py
index 5c28b7c..44757d7 100644
--- a/gnowsys-ndf/gnowsys_ndf/ndf/management/commands/sync_existing_documents.py
+++ b/gnowsys-ndf/gnowsys_ndf/ndf/management/commands/sync_existing_documents.py
@@ -61,7 +61,7 @@ class Command(BaseCommand):
# --------------------------------------------------------------------------
# Adding <'moderation_level': -1> field to Group objects
- node_collection.collection.update({'_type': {'$in': ['Group']}}, {'$set': {'moderation_level': -1 }}, upsert=False, multi=True)
+ node_collection.collection.update({'_type': {'$in': ['Group']}, 'edit_policy': {'$nin': ['EDITABLE_MODERATED']}}, {'$set': {'moderation_level': -1 }}, upsert=False, multi=True)
if res['updatedExisting']: # and res['nModified']:
print "\n Added 'moderation_level' field to " + res['n'].__str__() + " Group instances."