Browse Source

Add to legacy study

pull/6/head
Marcio Mazza 10 years ago
parent
commit
dcb60203a3
  1. 0
      legacy/scripts/migration.py
  2. 5
      legacy/scripts/study.py

0
legacy/scripts/migrate.py → legacy/scripts/migration.py

5
legacy/scripts/study.py

@ -1,5 +1,10 @@
from django.apps import apps
from migration_base import legacy_app
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()
legacy_models_without_ind_excluido = [m for m in legacy_app.models.values() if not any(f.name == 'ind_excluido' for f in m._meta.fields)]

Loading…
Cancel
Save