The __hash__ and __eq__ seem to mess this up - need to investigate further. https://stackoverflow.com/questions/62567569/ponyorm-with-mixins-with-custom-hash