From f5fc6f23f5369df98fb0fdb061bfbac3c9662677 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 23 Sep 2019 14:43:48 +0200 Subject: Hide parcel field for UE QA - Add cultural atribution for sites --- archaeological_operations/lookups.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'archaeological_operations/lookups.py') diff --git a/archaeological_operations/lookups.py b/archaeological_operations/lookups.py index 8329da709..2d70029ce 100644 --- a/archaeological_operations/lookups.py +++ b/archaeological_operations/lookups.py @@ -1,13 +1,13 @@ from ajax_select import register -from ishtar_common.lookups import LookupChannel +from ishtar_common.lookups import LookupChannel, TypeLookupChannel from django.db.models import Q from django.utils.encoding import force_text from django.utils.html import escape from archaeological_operations.models import Operation, ArchaeologicalSite, \ - Parcel + Parcel, CulturalAttributionType @register('operation') @@ -76,3 +76,8 @@ class ParcelLookup(LookupChannel): def format_item_display(self, item): return u"%s" % item.long_label() + + +@register("cultural_attribution_type") +class CulturalAttributionTypeLookup(TypeLookupChannel): + model = CulturalAttributionType -- cgit v1.2.3