Reputation: 4158
How could I go about utilizing the Postgres Prefix Plugin within django? Is there a way to just append an additional WHERE
clause to the queries that django runs without going into raw SQL?
Maybe something like this?
Model.objects.filter(field1=2, field2__in=[1,2,3]).where("prefix @> '0123456789'")
Upvotes: 1
Views: 154