New way: https://github.com/torchbox/wagtaildemo/blob/master/demo/models.py#L344