fix for issue #16 (Custom readonly_fields crash mass edit template)

fix for issue #16