diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-01-29 02:14:03 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-01-29 02:14:03 +0100 | 
| commit | 399b48288a2eda31dce54b64f2baf7494a675f37 (patch) | |
| tree | f6289016093b1830070861cdc4acc605a19fb8d5 /archaeological_finds/models.py | |
| parent | e5f4fd5bc800695d335456ca2103fbbe650ce890 (diff) | |
| download | Ishtar-399b48288a2eda31dce54b64f2baf7494a675f37.tar.bz2 Ishtar-399b48288a2eda31dce54b64f2baf7494a675f37.zip  | |
Add new fields to context record, find sheets.
Diffstat (limited to 'archaeological_finds/models.py')
| -rw-r--r-- | archaeological_finds/models.py | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py index 7d5b3108d..1fb92f9d8 100644 --- a/archaeological_finds/models.py +++ b/archaeological_finds/models.py @@ -108,8 +108,9 @@ class BaseFind(BaseHistorizedItem, OwnPerms):              return          find = self.get_last_find()          ope = self.context_record.operation -        c_id = [unicode(ope.code_patriarche) or \ +        c_id = [unicode(ope.code_patriarche) if ope.code_patriarche else                  (unicode(ope.year) + "-" + unicode(ope.operation_code))] +        print c_id          c_id.append(find and find.material_type.code or '')          c_id.append(self.context_record.label)          c_id.append(unicode(self.index))  | 
