diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-08-18 15:07:58 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-08-18 15:07:58 +0200 |
commit | cd765b8a602db88488074aecae584727c487156f (patch) | |
tree | cd116e3bfaab2167f5f63ddc350eb55b678acf23 /archaeological_operations/views.py | |
parent | 1d12ef323a174c2d39a1de6805b9baa981c405a5 (diff) | |
download | Ishtar-cd765b8a602db88488074aecae584727c487156f.tar.bz2 Ishtar-cd765b8a602db88488074aecae584727c487156f.zip |
Archaeological files: associate many towns. PEP8 and formating.
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r-- | archaeological_operations/views.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py index a8ded32cf..5e7288caa 100644 --- a/archaeological_operations/views.py +++ b/archaeological_operations/views.py @@ -18,21 +18,23 @@ # See the file COPYING for details. import json -import os from django.core.urlresolvers import reverse from django.db.models import Q from django.http import HttpResponse from django.shortcuts import render_to_response, redirect -from django.template.defaultfilters import slugify from django.utils.translation import ugettext_lazy as _, pgettext_lazy from ishtar_common.views import get_item, show_item, revert_item, new_item from ishtar_common.wizards import SearchWizard +from ishtar_common.forms import ClosingDateFormSelection +from ishtar_common.forms_common import AuthorFormset, TownFormset, \ + SourceDeletionForm from wizards import * from forms import * import models + def autocomplete_patriarche(request, non_closed=True): if (not request.user.has_perm('ishtar_common.view_operation', models.Operation) @@ -56,6 +58,7 @@ def autocomplete_patriarche(request, non_closed=True): for operation in operations]) return HttpResponse(data, mimetype='text/plain') + def autocomplete_archaeologicalsite(request): if (not request.user.has_perm( 'archaeological_operations.view_archaeologicalsite', |