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

Initial stab at tagging events

parent e9ef2fbc
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,9 @@ import thread
import string
import os
from tagging.fields import TagField
from tagging.models import Tag
from gracedb.ligolw.models import CoincEvent
class User(models.Model):
......@@ -60,6 +63,11 @@ class Event(models.Model):
# old date encoded uids.
uid = models.CharField(max_length=20, unique=False, default="")
tags = TagField()
def get_tags(self):
return Tag.objects.get_for_object(self)
class Meta:
ordering = ["-id"]
......
......@@ -113,4 +113,5 @@ INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.sites',
'gracedb.gracedb',
'tagging',
)
......@@ -105,4 +105,5 @@ 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