Learnt how Django queries work