diff options
| -rw-r--r-- | archaeological_finds/models_finds.py | 5 | ||||
| -rw-r--r-- | ishtar_common/views.py | 4 | 
2 files changed, 6 insertions, 3 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index a335eb6ec..811e6be74 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -503,7 +503,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel,                    'base_finds__context_record__operation__common_name',                    'base_finds__context_record__parcel',                    'base_finds__context_record__label', -                  'material_types__label', 'object_types', +                  'material_types__label', 'object_types__label',                    'datings__period__label',                    'container__cached_label',                    'base_finds__batch', ] @@ -514,7 +514,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel,          'base_finds__cache_short_id',          'base_finds__cache_complete_id',          'previous_id', 'label', 'material_types__label', -        'datings__period__label', 'find_number', 'object_types', +        'datings__period__label', 'find_number', 'object_types__label',          'container__cached_label',          'description',          'base_finds__context_record__parcel__town', @@ -541,6 +541,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel,          'container__cached_label': _(u"Container"),          'datings__period__label': _(u"Periods"),          'material_types__label': _(u"Material types"), +        'object_types__label': _(u"Object types"),      }      EXTRA_FULL_FIELDS = [ diff --git a/ishtar_common/views.py b/ishtar_common/views.py index 0ee57364b..997acd7df 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -587,7 +587,7 @@ def format_val(val):  HIERARCHIC_LEVELS = 5  HIERARCHIC_FIELDS = ['periods', 'period', 'unit', 'material_types', -                     'material_type', 'conservatory_state'] +                     'material_type', 'conservatory_state', 'object_types']  def _get_values(request, val): @@ -677,6 +677,7 @@ def get_item(model, func_name, default_name, extra_request_keys=[],          fields = [model._meta.get_field(k)                    for k in get_all_field_names(model)] +          request_keys = dict([              (field.name,               field.name + (hasattr(field, 'rel') and field.rel and '__pk' @@ -733,6 +734,7 @@ def get_item(model, func_name, default_name, extra_request_keys=[],                  q = Q(**{req_key: val})                  reqs |= q              and_reqs.append(reqs) +          pinned_search = ""          if 'submited' not in request_items and full != 'shortcut':              # default search  | 
