oauth2_client/management/commands/oauth2_app_maker.py
def validate_unique(self, name):
        """
        Validate Application.name uniqueness, before creating. Used for models,
        that don't enforce that themselves.

        Raises:
            ValidationError:
        """
        count = self.app_model().objects.filter(name=name).count()
        if count > 0:
            raise ValidationError(
                "Application already exists. Number of existing instances where name={}: {}. "
                "`name` field has to be unique and present.".format(name, count)
            )

        Validate Application.name uniqueness, before creating. Used for models,
        that don't enforce that themselves.

        Raises:
            ValidationError:
        
Validate Application.name uniqueness, before creating. Used for models,
that don't enforce that themselves.
Validate Application . name uniqueness before creating . Used for models that don ' t enforce that themselves .
def validate_unique(self, name):
        count = self.app_model().objects.filter(name=name).count()
        if count > 0:
            raise ValidationError(
                "Application already exists. Number of existing instances where name={}: {}. "
                "`name` field has to be unique and present.".format(name, count)
            )
def validate_unique ( self , name ) : count = self . app_model ( ) . objects . filter ( name = name ) . count ( ) if count > 0 : raise ValidationError ( "Application already exists. Number of existing instances where name={}: {}. " "`name` field has to be unique and present." . format ( name , count ) )
Validate Application.name uniqueness, before creating.
Validate Application . name uniqueness before creating .
"""
        Validate Application.name uniqueness, before creating. Used for models,
        that don't enforce that themselves.

        Raises:
            ValidationError:
        """
None
ValidationError
self
name