def add_users_autogroup(apps, schema_editor):
 Group = apps.get_model(u'auth', u'Group')
 AutoGroup = apps.get_model(u'accounts', u'AutoGroup')
 group = Group.objects.get_or_create(name=u'Users')[0]
 if (not AutoGroup.objects.filter(group=group).exists()):
  AutoGroup.objects.create(group=group, match=u'^.*$')

def add_users_autogroup ( apps , schema_editor ) : Group = apps . get_model ( u'auth' , u'Group' ) AutoGroup = apps . get_model ( u'accounts' , u'AutoGroup' ) group = Group . objects . get_or_create ( name = u'Users' ) [ 0 ] if ( not AutoGroup . objects . filter ( group = group ) . exists ( ) ) : AutoGroup . objects . create ( group = group , match = u'^.*$' )
ensure there is autogroup for users group matching all .