X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/79e89d2c15b86b7b8d4ccf76c85d2fa2154cd2e8..ca4d8af448022675e9b2870a0e0149c8257037c4:/philo/models/base.py diff --git a/philo/models/base.py b/philo/models/base.py index 573c339..436df42 100644 --- a/philo/models/base.py +++ b/philo/models/base.py @@ -18,10 +18,14 @@ from philo.validators import json_validator class Tag(models.Model): + """A simple, generic model for tagging.""" + #: A CharField (max length 255) which contains the name of the tag. name = models.CharField(max_length=255) + #: A CharField (max length 255) which contains the tag's unique slug. slug = models.SlugField(max_length=255, unique=True) def __unicode__(self): + """Returns the value of the :attr:`name` field""" return self.name class Meta: