Replies: 1 comment 3 replies
-
As of now - no. The reason is that when you would replace it with the value you wouldn't be able to load the model of needed anymore and loose all Relation specific attributes. You would like to disable it for one query, always? What is your use case? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a model:
When I make a request to get a list of posts (
Post.objects.all()
), I want to get a list of posts where the link field is a numeric value, while having all the ormar methods for working with the Post modelBut I get a list of posts where the link field is an instance of the PageLink model with the pk field. It looks like this
Is it possible to disable this behavior?
Beta Was this translation helpful? Give feedback.
All reactions