def get_installed_apps():
    """
    Return list of all installed apps
    """
    if (1, 7) >= django.VERSION:
        from django.apps import apps
        return [a.models_module for a in apps.get_app_configs()
                if a.models_module is not None]
    else:
        from django.db import models
        return models.get_apps()
dataset/ETHPy150Open r4fek/django-cassandra-engine/django_cassandra_engine/utils.py/get_installed_apps/swapped operands of `>=`