()
Initialize watched tags.

    Not possible to do in migrations:
    https://github.com/jazzband/django-taggit/issues/454
Initialize watched tags.
Initialize watched tags .
def init_tags():
    """
    Initialize watched tags.

    Not possible to do in migrations:
    https://github.com/jazzband/django-taggit/issues/454
    """
    from .models import Profile

    profiles = Profile.objects.all()
    # TODO: add a progress to this.
    for pro in profiles:
        pro.add_watched()
        pro.save()

    logger.info("Added watched tags to profiles")
def init_tags ( ) : from . models import Profile profiles = Profile . objects . all ( ) # TODO: add a progress to this. for pro in profiles : pro . add_watched ( ) pro . save ( ) logger . info ( "Added watched tags to profiles" )