src/blog_admin/views.py
def filter_new_tags(self, post_tags: List[str]) -> List[TagForm]:
        """Filter all the tags, which are not present in the db."""
        return [
            TagForm({'text': tag})
            for tag in post_tags
            if tag not in self.stored_tags
        ]
Filter all the tags, which are not present in the db.
Filter all the tags, which are not present in the db.
Filter all the tags which are not present in the db .
def filter_new_tags(self, post_tags: List[str]) -> List[TagForm]:
        return [
            TagForm({'text': tag})
            for tag in post_tags
            if tag not in self.stored_tags
        ]
def filter_new_tags ( self , post_tags : List [ str ] ) -> List [ TagForm ] : return [ TagForm ( { 'text' : tag } ) for tag in post_tags if tag not in self . stored_tags ]
Filter all the tags, which are not present in the db.
Filter all the tags which are not present in the db .
"""Filter all the tags, which are not present in the db."""
self
post_tags
List[str]