2 from django.db import models
3 from core.models import PlCoreBase
4 from core.models import Slice
6 class SliceTag(PlCoreBase):
7 slice = models.ForeignKey(Slice, related_name='slicetags')
9 NAME_CHOICES = (('privatekey', 'Private Key'), ('publickey', 'Public Key'))
10 name = models.CharField(help_text="The name of this tag", max_length=30, choices=NAME_CHOICES)
11 value = models.CharField(help_text="The value of this tag", max_length=1024)