liberapay/postgres.py

link to parent for nested types?

Opened this issue · 0 comments

I have a column of a custom type, and I want a reference to the parent for the child. I want to be able to do:

foo = Participant.from_username('foo')
foo.email.send(message)

... and inside send have access to foo.username, etc.