diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-05-22 11:07:10 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-05-22 11:07:10 +0200 |
commit | 9f577da421b5b909fea2caff3049aea1cd7acf30 (patch) | |
tree | 87e2fa2dee181df10b10441d19b97b8b934c727f /archaeological_finds/models_treatments.py | |
parent | 7eba12011665ebb62c15a7b54c45237dc4f71e86 (diff) | |
download | Ishtar-9f577da421b5b909fea2caff3049aea1cd7acf30.tar.bz2 Ishtar-9f577da421b5b909fea2caff3049aea1cd7acf30.zip |
Document templates: manage finds, base finds, baskets relations
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r-- | archaeological_finds/models_treatments.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index e8d6256ef..6f24e1474 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -1008,15 +1008,6 @@ class TreatmentFile(DashboardFormItem, ClosedItem, BaseHistorizedItem, for attr in ('year', 'index', 'internal_reference', 'name') if getattr(self, attr)]) - def get_values(self, prefix=''): - values = super(TreatmentFile, self).get_values(prefix=prefix) - if not self.associated_basket: - return values - values[prefix + "basket"] = [ - find.get_values() for find in self.associated_basket.items.all() - ] - return values - def get_extra_actions(self, request): # url, base_text, icon, extra_text, extra css class, is a quick action actions = super(TreatmentFile, self).get_extra_actions(request) |