def validate_lowercase(string):
 if (not string.islower()):
  raise ValidationError(_(u'This value must be all lowercase.'))

def validate_lowercase ( string ) : if ( not string . islower ( ) ) : raise ValidationError ( _ ( u'This value must be all lowercase.' ) )
validates that a string is lowercase .