From 50e4c65abaade0890def699ddc7514e9dd00c3f6 Mon Sep 17 00:00:00 2001 From: Macartur Sousa Date: Mon, 19 Oct 2015 17:52:19 -0200 Subject: [PATCH] Added model Tag and update templates preview --- colab/plugins/utils/models.py | 4 ++++ colab/super_archives/templates/message-preview.html | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/colab/plugins/utils/models.py b/colab/plugins/utils/models.py index 9d61c9d..4e808d8 100644 --- a/colab/plugins/utils/models.py +++ b/colab/plugins/utils/models.py @@ -3,6 +3,10 @@ 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/templates/message-preview.html b/colab/super_archives/templates/message-preview.html index feba65e..06ee063 100644 --- a/colab/super_archives/templates/message-preview.html +++ b/colab/super_archives/templates/message-preview.html @@ -3,9 +3,9 @@
  • -{% if result.tag %} +{% if result.tag_name %} - {{ result.tag }} + {{ result.tag_name}} {% endif %} -- libgit2 0.21.2