diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-23 14:43:48 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-23 14:43:48 +0200 |
commit | f5fc6f23f5369df98fb0fdb061bfbac3c9662677 (patch) | |
tree | 2abd184b08e73352ccb9ddb078b1d48122b5e472 /archaeological_operations/lookups.py | |
parent | d267f410a54aa76b7f9fe02cd754a270f56b3a04 (diff) | |
download | Ishtar-f5fc6f23f5369df98fb0fdb061bfbac3c9662677.tar.bz2 Ishtar-f5fc6f23f5369df98fb0fdb061bfbac3c9662677.zip |
Hide parcel field for UE QA - Add cultural atribution for sites
Diffstat (limited to 'archaeological_operations/lookups.py')
-rw-r--r-- | archaeological_operations/lookups.py | 9 |
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 |