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

Minor changes wrt labelling and tagging

parent 6e6ecec5
No related branches found
No related tags found
No related merge requests found
......@@ -28,9 +28,9 @@ class Group(models.Model):
return self.name
class Label(models.Model):
name = models.CharField(max_length=20)
name = models.CharField(max_length=20, unique=True)
# XXX really, does this belong here? probably not.
defaultColor = models.CharField(max_length=20, default="black")
defaultColor = models.CharField(max_length=20, unique=False, default="black")
def __unicode__(self):
return self.name
......
......@@ -244,6 +244,7 @@ def upload(request):
return response
def cli_tag(request):
raise Exception("tag is not implemented. Maybe you're thinking of 'label'?")
graceid = request.POST.get('graceid')
tagname = request.POST.get('tag')
......
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