openpolis/open_municipio — Issue #30: Implement a custom ``Tag`` model
Author: seldon
Created: 2012-03-07 16:43:21+00:00
State: open
Labels: enhancement, taxonomy

In order to enable Django's [reverse-lookup DB API](https://docs.djangoproject.com/en/1.3/ref/contrib/contenttypes/#django.contrib.contenttypes.generic.GenericRelationf) for generic relations, we need access to the related model class' source declaration.

Since we need that reverse-lookup DB API (for implementing monitoring of generic objects) for the ``Tag`` model, we need to subclass the built-in model provided by `django-taggit`.

Luckily, `django-taggit` provides [a handy hook](http://django-taggit.readthedocs.org/en/latest/custom_tagging.html) for this task.