How does django implement double underscore in filter?
Thanks to answers below I found the answer to my question:
Django have a const LOOKUP_SEP = '__' then using split to split the param to a key value pair
I noticed that Django use double under score to define a lookup in Model.objects.filter instance.
For example:
Room.objects.filter(width__lte = 10)
How does it work? How can I create my own function like Django and know that width__lte is actually separated for width and lower then or equal to 10.