summaryrefslogtreecommitdiff
path: root/archaeological_operations/lookups.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/lookups.py')
-rw-r--r--archaeological_operations/lookups.py9
1 files changed, 7 insertions, 2 deletions
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"<span class='ajax-label'>%s</span>" % item.long_label()
+
+
+@register("cultural_attribution_type")
+class CulturalAttributionTypeLookup(TypeLookupChannel):
+ model = CulturalAttributionType