GenericRelation field not recognized as model field
MatejMijoski opened this issue · comments
Matej Mijoski commented
I have a model which uses another table as a GenericRelation.
class Model(models.Model)
<...fields here>
generic = GenericRelation('throughModelname', ...)
On the view for this model, I declared:
filterset_fields = {
"generic__id": ["exact", "in"]
}
but for some reason it doesn't recognize this field as a part of the model.
Carlton Gibson commented
There's not really anything to go on here.
See #830 for a discussion of generic filtering.