I am trying to populate one input field based on another field. I am using raw SQL query instead of ORM. My views :
def