From 4ce695d9339e9f37ef555e2eb46c41253e9b2a98 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 14 Jun 2019 20:47:16 -0500 Subject: [PATCH] Make person, created by fields readonly when editing Person Note --- tailbone/views/people.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tailbone/views/people.py b/tailbone/views/people.py index 7f0c9826..67c3f992 100644 --- a/tailbone/views/people.py +++ b/tailbone/views/people.py @@ -468,7 +468,15 @@ class PersonNoteView(MasterView): def configure_form(self, f): super(PersonNoteView, self).configure_form(f) + # person + f.set_readonly('person') f.set_renderer('person', self.render_person) + + # created + f.set_readonly('created') + + # created_by + f.set_readonly('created_by') f.set_renderer('created_by', self.render_user)