Skip to content
Snippets Groups Projects
Commit 6ba814f5 authored by Brian Moe's avatar Brian Moe
Browse files

Removed references to tagging app.

parent 4567e671
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,6 @@ import thread
import string
import os
from tagging.fields import TagField
from tagging.models import Tag
from tagging.utils import get_tag_list
from gracedb.ligolw.models import CoincEvent
......@@ -72,16 +69,6 @@ class Event(models.Model):
labels = models.ManyToManyField(Label, through="Labelling")
tags = TagField()
def get_tags(self):
return Tag.objects.get_for_object(self)
def add_tag(self, tag, must_already_exist=True):
if must_already_exist and not get_tag_list(tag):
raise ValueError("Tag '%s' does not exist." % tag)
Tag.objects.add_tag(self, tag)
class Meta:
ordering = ["-id"]
......
......@@ -113,5 +113,4 @@ INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.sites',
'gracedb.gracedb',
'tagging',
)
......@@ -105,5 +105,4 @@ INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.sites',
'gracedb.gracedb',
'tagging',
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment