parameters: (cls, org, base_name, ignore=None)
return_statement: return name
docstring: Generates a unique flow name based on the given base name
docstring_summary: Generates a unique flow name based on the given base name
docstring_tokens: Generates a unique flow name based on the given base name
function: def get_unique_name(cls, org, base_name, ignore=None):
          """
          Generates a unique flow name based on the given base name
          """
          name = base_name[:64].strip()
  
          count = 2
          while True:
              flows = Flow.objects.filter(name=name, org=org, is_active=True)
              if ignore:  # pragma: needs cover
                  flows = flows.exclude(pk=ignore.pk)
  
              if not flows.exists():
                  break
  
              name = "%s %d" % (base_name[:59].strip(), count)
              count += 1
  
          return name
function_tokens: def get_unique_name ( cls , org , base_name , ignore = None ) : name = base_name [ : 64 ] . strip ( ) count = 2 while True : flows = Flow . objects . filter ( name = name , org = org , is_active = True ) if ignore : # pragma: needs cover flows = flows . exclude ( pk = ignore . pk ) if not flows . exists ( ) : break name = "%s %d" % ( base_name [ : 59 ] . strip ( ) , count ) count += 1 return name