# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations
from django.contrib.auth.models import Permission


def revoke_delete_user_perms_from_non_superusers(apps, schema_editor):
    perm = Permission.objects.filter(name="Can delete user").first()
    if perm and perm.user_set.exists():
        perm.user_set.clear()


class Migration(migrations.Migration):

    dependencies = [
        (
            'accelerator',
            '0053_add_eventbrite_organization_id_field'
        ),
    ]

    operations = [
        migrations.RunPython(
            revoke_delete_user_perms_from_non_superusers,
            migrations.RunPython.noop),
    ]

@@ -173,33 +173,28 @@
 _perms_from_
-non_super
+all_
 users(apps, 
@@ -617,17 +617,12 @@
 rom_
-non_super
+all_
 user

update migration function name to reflect the migration applying to every user