1👍
✅
Not by using .extra
. You’ll need to use raw
. Here are the docs on it.
If you do decide to go that route, you’ll have to do the filter that’s involved in visible
in that raw SQL query as well. I’m not 100% positive on what RawQuerySet provides compared to QuerySet.
Source:stackexchange.com