summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-06-01 23:56:40 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-06-01 23:56:40 +0200
commit5b4f779a9845c5d6191b726c6fafbf6d88f007de (patch)
tree6f77004ed17ebf4f4f9b9734d82068b0ad4cfeb7 /ishtar_common/models.py
parentfd9d40e148dec6085d4e9e6bf2ddb8350f850e4a (diff)
downloadIshtar-5b4f779a9845c5d6191b726c6fafbf6d88f007de.tar.bz2
Ishtar-5b4f779a9845c5d6191b726c6fafbf6d88f007de.zip
Add import actions (re-import and unarchive)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py3
1 files changed, 3 insertions, 0 deletions
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