From d45d800319627b36b72d8c964d4495c9ec51976a Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Sat, 6 Jun 2015 18:34:04 -0300 Subject: [PATCH] Add script to study legacy data --- legacy/scripts/study.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 legacy/scripts/study.py diff --git a/legacy/scripts/study.py b/legacy/scripts/study.py new file mode 100644 index 000000000..7a900c626 --- /dev/null +++ b/legacy/scripts/study.py @@ -0,0 +1,5 @@ +from django.apps import apps + +for model in apps.get_app_config('legacy').get_models(): + if 'ind_excluido' in [f.name for f in model._meta.fields]: + print model, model.objects.values_list('ind_excluido', flat=True).distinct()