Question

How can I know if a new tag is created for a model? Looks like the django-tagging API does not provide such method. I'm new to both Django and django-tagging app and would like to hear your advice.

Update: what I'm trying to acomplish is to add more properties to tags. I think to have another model TagProperties linked to Tag model. And every time the Tag is save I save the TagProperies as well.

Was it helpful?

Solution

One way would be to use django signals. You could connect a post_save signal to the Tag model and handle that for when a new instance is created.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top