def _get_installed_models(table_list):
    "Gets a set of all models that are installed, given a list of existing tables"
    from django.db import models
    all_models = []
    for app in models.get_apps():
        for model in models.get_models(app):
            all_models.append(model)
    return set([m for m in all_models if m._meta.db_table in table_list])
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/core/management.py/_get_installed_models/original