diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-04 17:52:17 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-04 17:52:17 +0200 |
commit | 235723102fdb7c5b74d42278b8d934b7e2830f1a (patch) | |
tree | cf5da383b3ed46de875ee25ec625b0218c2da35a /ishtar_common/models.py | |
parent | daa8d5562ffcab11df290bf7101b2e3fe266b674 (diff) | |
download | Ishtar-235723102fdb7c5b74d42278b8d934b7e2830f1a.tar.bz2 Ishtar-235723102fdb7c5b74d42278b8d934b7e2830f1a.zip |
QA person: bulk modification
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 10 |
1 files changed, 9 insertions, 1 deletions
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() |