Skip to content

0.64.0

Choose a tag to compare

@dantownsend dantownsend released this 16 Jan 20:16
· 533 commits to master since this release

Added initial support for ForeignKey columns referencing non-primary key columns. For example:

class Manager(Table):
    name = Varchar()
    email = Varchar(unique=True)

class Band(Table):
    manager = ForeignKey(Manager, target_column=Manager.email)

Thanks to @theelderbeever for suggesting this feature, and with help testing.