enterprise/migrations/0065_add_enterprise_feature_roles.py
def delete_roles(apps, schema_editor):
    """Delete the enterprise roles."""
    EnterpriseFeatureRole = apps.get_model('enterprise', 'EnterpriseFeatureRole')
    EnterpriseFeatureRole.objects.filter(
        name__in=[ENTERPRISE_CATALOG_ADMIN_ROLE, ENTERPRISE_DASHBOARD_ADMIN_ROLE, ENTERPRISE_ENROLLMENT_API_ADMIN_ROLE]
    ).delete()
def delete_roles(apps, schema_editor):
    """Delete the enterprise roles."""
    EnterpriseFeatureRole = apps.get_model('enterprise', 'EnterpriseFeatureRole')
    EnterpriseFeatureRole.objects.filter(
        name__in=[ENTERPRISE_CATALOG_ADMIN_ROLE, ENTERPRISE_DASHBOARD_ADMIN_ROLE, ENTERPRISE_ENROLLMENT_API_ADMIN_ROLE]
    ).delete()
def delete_roles ( apps , schema_editor ) : EnterpriseFeatureRole = apps . get_model ( 'enterprise' , 'EnterpriseFeatureRole' ) EnterpriseFeatureRole . objects . filter ( name__in = [ ENTERPRISE_CATALOG_ADMIN_ROLE , ENTERPRISE_DASHBOARD_ADMIN_ROLE , ENTERPRISE_ENROLLMENT_API_ADMIN_ROLE ] ) . delete ( )
Delete the enterprise roles.
Delete the enterprise roles .