mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
235 B
6 lines
235 B
10 years ago
|
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()
|