From 9de3d0b7be0c10bc5ee2a777b596a2182ccaa2c5 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Fri, 26 Jun 2015 15:15:11 -0300 Subject: [PATCH] List models without scrapped data --- legacy/scripts/scrap_original_forms.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/legacy/scripts/scrap_original_forms.py b/legacy/scripts/scrap_original_forms.py index 77337fa04..09c17f821 100644 --- a/legacy/scripts/scrap_original_forms.py +++ b/legacy/scripts/scrap_original_forms.py @@ -154,3 +154,9 @@ from django.utils.translation import ugettext as _ print '\n' for p in source_with_verbose_names(model): print p + + +def list_models_with_no_scrapped_data(app): + for model in app.models.values(): + if not any(extract_verbose_names(model)[:2]): + print model.__name__