开发者

How make tags with properties in Django?

开发者 https://www.devze.com 2023-01-12 09:50 出处:网络
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 recommendatio

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号