문제

The django-tagging app provides basic tagging functionality. I need each tag also to have properties (category, description, etc.), basically a related table. What's your recommendation, should I try to get this with django-tagging or implement "my tagging" from scratch?

도움이 되었습니까?

해결책

Create a model to hold your tag metadata.

With a tag instance you can look up the model instance to learn the category, description, etc. You could even tag the metadata instance with the tag if you find that makes things easier.

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