1👍
Just use double underscore notation to get proper field of related model:
'sala': Sala.objects.filter(jezyk__jezyk='EN')
And mixing 2 languages in code (polish and english) is not looking great, try to avoid that.
Source:stackexchange.com
1👍
Just use double underscore notation to get proper field of related model:
'sala': Sala.objects.filter(jezyk__jezyk='EN')
And mixing 2 languages in code (polish and english) is not looking great, try to avoid that.