Fixed #22356 -- unique_together fails when referencing columns from base...

... and child class