From b6f2dfaeca2bd8e507333b299985e1e3386f6689 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 9 Sep 2015 20:04:26 +0200 Subject: Add many fields to finds - associated migrations, forms and autocomplete view (refs #2784) --- archaeological_finds/views.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'archaeological_finds/views.py') 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 +# Copyright (C) 2010-2015 Étienne Loks # 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), -- cgit v1.2.3