Open marcrleonard opened 4 months ago
First question: If you do AssetTag.objects.all()
, do you see the tag you are expecting to find? Like you're sure the tag is saved? I'm assuming that this database is pretty small.
Second question: if you have a specific asset, does asset.tags.objects.all()
give you the tags you're expecting in general?
Sometimes it is helpful to do things like:
print(Asset.objects.filter(tags__name__in=["some_tag"]).query)
This should help you see what exactly your system is doing.
Django Version: 4.2.9 Taggit Version: 5.0.1
Hello, I have been beating my head against this and cannot figure it out. I am using the
through
parameter to point to a UUID tag class. Here is my setup:I will create an asset and tag it with
some_tag
... then I try to query assets with the tag like this:or
assets = Asset.objects.filter(tags__name__in=["some_tag"]).distinct()
Both return no results. I cannot figure out whats going on.