def is_slug_available(self, slug, **kwargs):
        """Checks to see if a slug is available. If the slug is already being used
        this method returns False.  Otherwise, return True.
        """
        try:
            self.get(slug=slug, **kwargs)
            return False
        except self.model.DoesNotExist:
            return True
def is_slug_available ( self , slug , ** kwargs ) : try : self . get ( slug = slug , ** kwargs ) return False except self . model . DoesNotExist : return True
Checks to see if a slug is available. If the slug is already being used
        this method returns False.  Otherwise, return True.