Fix #1367 : Discard readonly fields in editing templates
Merge pull request #540 from romainneutron/fix-1367

[3.8] Fix #1367 : Discard readonly fields in editing templates