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 | 5b5c1bd7dd865fb530b156212474846db59b2191 (patch) | |
| tree | 9231343e50584d48cba27816dbef309f0a7209f9 /ishtar_common/models.py | |
| parent | ee94a8b12e3187bd20646f4eac698d2fb7a9a9f9 (diff) | |
| download | Ishtar-5b5c1bd7dd865fb530b156212474846db59b2191.tar.bz2 Ishtar-5b5c1bd7dd865fb530b156212474846db59b2191.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 | 
