How to link multiple tag types for each model in django

I'm a little new to django and trying to find better ways to do something, rather than writing everything myself. I am working on a model where I need several types of tags to bind to the model, and then I want to get objects using several filtering criteria. I see that the django-tagging tags are stored for each model, so I think it is impossible to have multiple tags for each model. Example:

   class Place( model ):
     category = TagField() # fun, play, learn, relax
     sport    = TagField() # boating, hunting, fishing

Can this be done using django-tagging? I am missing something because it looks pretty often to me.

+2
source share
2 answers

, . / . (Flickr : , , upcoming:event=81334, .)

django-tagging, 2007 : . .google.com/p/django-tagging/issues/detail?id=14.

, . , " ", : https://code.launchpad.net/~gregor-muellegger/django-tagging/machinetags/.

django ( ). , , ; . .

+1

Source: https://habr.com/ru/post/1754723/


All Articles