From 235723102fdb7c5b74d42278b8d934b7e2830f1a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 4 Jun 2019 17:52:17 +0200 Subject: QA person: bulk modification --- ishtar_common/models.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index d95986c70..2e618749b 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3625,7 +3625,7 @@ class PersonManager(models.Manager): return self.get(**q) -class Person(Address, Merge, OwnPerms, ValueGetter): +class Person(Address, Merge, OwnPerms, ValueGetter, MainItem): SLUG = "person" _prefix = 'person_' TYPE = ( @@ -3686,6 +3686,14 @@ class Person(Address, Merge, OwnPerms, ValueGetter): 'ishtaruser__isnull' ), } + QA_EDIT = QuickAction( + url="person-qa-bulk-update", icon_class="fa fa-pencil", + text=_(u"Bulk update"), target="many", + rights=['change_person']) + QUICK_ACTIONS = [ + QA_EDIT + ] + objects = PersonManager() -- cgit v1.2.3