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