From e0ce7e8505c29fd9ac4a4cbe54e38147f17c58a2 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 28 Jul 2020 21:19:47 -0500 Subject: [PATCH] Add `self.cloning` convenience indicator for master view --- tailbone/views/master.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailbone/views/master.py b/tailbone/views/master.py index daac610b..7f52d9c4 100644 --- a/tailbone/views/master.py +++ b/tailbone/views/master.py @@ -123,6 +123,7 @@ class MasterView(View): editing = False deleting = False executing = False + cloning = False has_pk_fields = False has_image = False has_thumbnail = False @@ -1129,6 +1130,7 @@ class MasterView(View): View for cloning an object's data into a new object. """ self.viewing = True + self.cloning = True instance = self.get_instance() form = self.make_form(instance) self.configure_clone_form(form)