@@ -0,0 +1,976 @@
+from django.core.management.base import LabelCommand%0Afrom corehq import Domain%0Afrom corehq.apps.app_manager.models import ApplicationBase%0A%0A%0Aclass Command(LabelCommand):%0A%0A    def handle(self, *args, **options):%0A        db = Domain.get_db()%0A%0A        def get_docs():%0A            for result in db.view(%0A                    'domain/domains',%0A                    reduce=False,%0A                    include_docs=True).all():%0A                yield result%5B'doc'%5D%0A            for result in ApplicationBase.get_db().view(%0A                    'app_manager/applications',%0A                    startkey=%5BNone%5D,%0A                    endkey=%5BNone, %7B%7D%5D,%0A                    reduce=False,%0A                    include_docs=True):%0A                yield result%5B'doc'%5D%0A%0A        for doc in get_docs():%0A            if 'secure_submissions' not in doc:%0A                print 'Updated', doc.get('doc_type'), doc.get('_id')%0A                doc%5B'secure_submissions'%5D = False%0A                db.save_doc(doc)%0A

add mgmt cmd to make secure_submissions explicity false if not set