문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top