How make tags with properties in Django?

前端 未结 1 1751
甜味超标
甜味超标 2020-12-20 07:12

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 r

1条回答
  •  庸人自扰
    2020-12-20 07:47

    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 讨论(0)
提交回复
热议问题