Ejemplo n.º 1
0
class Tag(Taxonomy):
    """

    """

    objects = TaxonomyManager()

    class Meta(object):
        ordering = ['name']
Ejemplo n.º 2
0
class Category(Taxonomy):
    """

    """

    objects = TaxonomyManager()

    class Meta(object):
        verbose_name_plural = 'categories'
        ordering = ['name']
Ejemplo n.º 3
0
class Topic(Taxonomy):
    """A category used to classify |Tags|.

    Attributes
    ----------
    name : str
        The name of the Topic.

    """

    name = models.CharField(max_length=255, unique=True)

    objects = TaxonomyManager()

    class Meta(object):
        """Metadata options."""

        ordering = ['name']