Extend taggable-mixin to support different Tag models.
commit5150aac6818307b1485e16b6b156df69a122daed
authorPawel Solyga <Pawel.Solyga@gmail.com>
Mon, 1 Jun 2009 20:23:46 +0000 (1 22:23 +0200)
committerPawel Solyga <Pawel.Solyga@gmail.com>
Mon, 1 Jun 2009 20:23:46 +0000 (1 22:23 +0200)
tree51eb557ccb1b3574742715b3891623faac6f4a35
parent61732dd72379072f07e3c2da3196324742b5a25e
Extend taggable-mixin to support different Tag models.

Usage is pretty simple. Tag model is default in Taggable constructor but you
can call it with different model like GHOPTaskType that inherits from Tag model.
Both Taggable and Tag models have been updated and they don't use hardcoded Tag
model anymore and instead use cls of class methods or self.__class__. In case
of Taggable it's self.__tag_model.
app/taggable-mixin/taggable.py