From 15fce379b2ac7ece971e6601bed958b0d9a96496 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 1 Jun 2015 23:56:40 +0200 Subject: Add import actions (re-import and unarchive) --- ishtar_common/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ishtar_common') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index d8321e04d..02e1148ef 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1379,7 +1379,10 @@ class Import(models.Model): actions.append(('A', _(u"Re-analyse"))) actions.append(('I', _(u"Launch import"))) if self.state in ('F', 'FE'): + actions.append(('I', _(u"Re-import"))) actions.append(('AC', _(u"Archive"))) + if self.state in ('AC'): + actions.append(('A', _(u"Unarchive"))) actions.append(('D', _(u"Delete"))) return actions -- cgit v1.2.3