From 325b5b0da13126a3b5f44ce93efbe2336a3ad575 Mon Sep 17 00:00:00 2001 From: Macartur Sousa Date: Tue, 20 Oct 2015 11:39:47 -0200 Subject: [PATCH] Changed tag to tag_name removed Tag model --- colab/plugins/utils/models.py | 4 ---- colab/super_archives/search_indexes.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/colab/plugins/utils/models.py b/colab/plugins/utils/models.py index 4e808d8..9d61c9d 100644 --- a/colab/plugins/utils/models.py +++ b/colab/plugins/utils/models.py @@ -3,10 +3,6 @@ from django.conf import settings from colab.accounts.models import User -class Tag(models.Model): - name = models.CharField(max_length=255) - color = models.CharField(max_length=30) - class Collaboration(models.Model): ''' Class to define the fields of the collaboration block diff --git a/colab/super_archives/search_indexes.py b/colab/super_archives/search_indexes.py index 901ec72..5cea2e7 100644 --- a/colab/super_archives/search_indexes.py +++ b/colab/super_archives/search_indexes.py @@ -19,7 +19,7 @@ class ThreadIndex(BaseIndex, indexes.Indexable): modified = indexes.DateTimeField( model_attr='latest_message__modified' ) - tag = indexes.CharField(model_attr='mailinglist__name') + tag_name = indexes.CharField(model_attr='mailinglist__name') collaborators = indexes.CharField(use_template=True, stored=False) mailinglist_url = indexes.CharField( model_attr='mailinglist__get_absolute_url', -- libgit2 0.21.2