From cfdaa1e92713bce29055345ec23b34294c90bb9e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 14 Jan 2023 12:17:05 -0600 Subject: [PATCH] Add default logic to get merge data for object --- tailbone/views/master.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tailbone/views/master.py b/tailbone/views/master.py index d01bb462..c53dac60 100644 --- a/tailbone/views/master.py +++ b/tailbone/views/master.py @@ -2094,7 +2094,8 @@ class MasterView(View): if self.merge_handler: return self.merge_handler.get_merge_preview_data(obj) - raise NotImplementedError("please implement `{}.get_merge_data()`".format(self.__class__.__name__)) + return dict([(f, getattr(obj, f)) + for f in self.get_merge_fields()]) def get_merge_resulting_data(self, remove, keep): result = dict(keep)