且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Django中使用属性标记?

更新时间:2023-11-24 22:33:22

创建一个模型来保存标签元数据.

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.