# MIT License
# Copyright (c) 2017 MassChallenge, Inc.

from __future__ import unicode_literals
from django.utils.encoding import python_2_unicode_compatible
from django.conf import settings
from django.db import models

from accelerator.models.accelerator_model import AcceleratorModel


@python_2_unicode_compatible
class RecommendationTag(AcceleratorModel):

    """
    Tag model used for storing keywords for a particular model.
    This is also fed into the recommendation engine.
    """
    text = models.TextField()

    class Meta(AcceleratorModel.Meta):
        db_table = 'accelerator_recommendationtag'
        managed = settings.ACCELERATOR_MODELS_ARE_MANAGED

@@ -354,17 +354,16 @@
 Model):%0A
-%0A
     %22%22%22%0A
@@ -666,8 +666,90 @@
 MANAGED%0A
+%0A    def __str__(self):%0A        return %22Recommendation Tag: %7B%7D%22.format(self.text)%0A

add an __str__ method to RecommendationTag