If I have tags field on several models, then Tag.objects.all() will get me all tags across all models.
Not having found a shortcut, by the docs, is this setup correct?:
-remove taggit from installed_apps
-in models.py:
class TaggedFood(TaggedItemBase):
content_object = models.ForeignKey('Food', on_delete=models.CASCADE)
class Food(models.Model):
tags = TaggableManager(through=TaggedFood)
Then will I be able to access tags only on Food model with TaggedFood.objects.all()?
When making migrations for this setup I get: "my_app.Food.tags: (fields.E300) Field defines a relation with model 'Tag', which is either not installed, or is abstract."
The setup is from here https://django-taggit.readthedocs.io/en/latest/custom_tagging.html