Make person, created by fields readonly when editing Person Note

This commit is contained in:
Lance Edgar 2019-06-14 20:47:16 -05:00
parent 44aa54f247
commit 4ce695d933

View file

@ -468,7 +468,15 @@ class PersonNoteView(MasterView):
def configure_form(self, f): def configure_form(self, f):
super(PersonNoteView, self).configure_form(f) super(PersonNoteView, self).configure_form(f)
# person
f.set_readonly('person')
f.set_renderer('person', self.render_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) f.set_renderer('created_by', self.render_user)