QSqlRelationalTableModel is messing things up after setting relation

Printable View