diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-10-22 20:29:45 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-10-22 20:35:10 +0200 |
commit | 51c50d6f27b70fde3b83b2cdb41ad41f0ac5e972 (patch) | |
tree | 9231343e50584d48cba27816dbef309f0a7209f9 /ishtar_common/models.py | |
parent | a4238e517f88398f072e2afc99d4fa7f827d0173 (diff) | |
download | Ishtar-51c50d6f27b70fde3b83b2cdb41ad41f0ac5e972.tar.bz2 Ishtar-51c50d6f27b70fde3b83b2cdb41ad41f0ac5e972.zip |
Admin: improve target admin
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 3b2fca3dd..63ea7d2a8 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1416,6 +1416,14 @@ class TargetKey(models.Model): def __unicode__(self): return u" - ".join([unicode(self.target), self.key[:50]]) + def column_nb(self): + # for the admin + return self.target.column.col_number + + def importer_type(self): + # for the admin + return self.target.column.importer_type.name + def format(self): if not self.is_set: return None |