Issue #35 resolved

Allow callable defined in models to be used as fields for model-based Handler

Alberto Donato
created an issue

The attached patch allows to use methods defined in models (if they don't take args) in the Handler 'fields' list, as in django's admin interface.

If the method returns a model instance, it is possible to use the (fieldname (fields...)) syntax (as for foreign keys) to filter sub-fields.

If a method with same name is defined in the handler, this takes precedence on model method, so the behaviour is backwards-compatible.

Comments (2)

  1. Log in to comment