def get_duplicate_emails():
 return get_user_model().objects.hide_meta().values('email').annotate(Count('email')).filter(email__count__gt=1).values_list('email', flat=True)

def get_duplicate_emails ( ) : return get_user_model ( ) . objects . hide_meta ( ) . values ( 'email' ) . annotate ( Count ( 'email' ) ) . filter ( email__count__gt = 1 ) . values_list ( 'email' , flat = True )
get a list of emails that occur more than once in user accounts .