summaryrefslogtreecommitdiff
path: root/archaeological_finds/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-09-09 20:04:26 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-09-09 20:04:26 +0200
commitb6f2dfaeca2bd8e507333b299985e1e3386f6689 (patch)
tree7c7a7a01a5cf2be00a3e737341d65c18d264e7a7 /archaeological_finds/views.py
parent9fefb173a1c5a76df73dc5d5c94dcdb6f303990a (diff)
downloadIshtar-b6f2dfaeca2bd8e507333b299985e1e3386f6689.tar.bz2
Ishtar-b6f2dfaeca2bd8e507333b299985e1e3386f6689.zip
Add many fields to finds - associated migrations, forms and autocomplete view (refs #2784)
Diffstat (limited to 'archaeological_finds/views.py')
-rw-r--r--archaeological_finds/views.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py
index 63a173edb..4628457c2 100644
--- a/archaeological_finds/views.py
+++ b/archaeological_finds/views.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2010-2013 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2010-2015 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -26,7 +26,8 @@ from ishtar_common.forms_common import SourceForm, AuthorFormset, \
SourceDeletionForm
from archaeological_context_records.forms import RecordFormSelection
-from ishtar_common.views import get_item, show_item, revert_item
+from ishtar_common.views import get_item, show_item, revert_item, \
+ get_autocomplete_generic
from ishtar_common.wizards import SearchWizard
from wizards import *
@@ -114,6 +115,8 @@ find_source_deletion_wizard = FindSourceDeletionWizard.as_view([
label=_(u"Find: source deletion"),
url_name='find_source_deletion',)
+autocomplete_objecttype = get_autocomplete_generic(models.ObjectType)
+
"""
treatment_creation_wizard = TreatmentWizard.as_view([
('basetreatment-treatment_creation', BaseTreatmentForm),