def create_new(self):
        """Create a new kitten by querying /r/awww.
        """
        kitten = reddit_kitten()
        if self.filter(url=kitten.url).exists():
            return self.get(url=kitten.url)
        else:
            kitten_obj = self.create(
                url=kitten.url,
                thumbnail=kitten.thumbnail,
                title=kitten.title,
            )
            return kitten_obj
def create_new ( self ) : kitten = reddit_kitten ( ) if self . filter ( url = kitten . url ) . exists ( ) : return self . get ( url = kitten . url ) else : kitten_obj = self . create ( url = kitten . url , thumbnail = kitten . thumbnail , title = kitten . title , ) return kitten_obj
Create a new kitten by querying /r/awww.