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 | 87df7fd7357f3210953038bff58477319e12b6fc (patch) | |
| tree | cf5da383b3ed46de875ee25ec625b0218c2da35a /ishtar_common/models.py | |
| parent | daee77bd657f0e72767d64dd92f36008e1c47676 (diff) | |
| download | Ishtar-87df7fd7357f3210953038bff58477319e12b6fc.tar.bz2 Ishtar-87df7fd7357f3210953038bff58477319e12b6fc.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() | 
