summaryrefslogtreecommitdiff
path: root/archaeological_files/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-04-04 14:58:05 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-04-04 17:27:54 +0200
commit8e19be1b27cf14cf0f76d7c4bcd81e520ac95407 (patch)
tree388ccdce5f40fe3bda8c457daeb397805925526d /archaeological_files/views.py
parent3f6567507978281761005dc12951511e0c81a9ae (diff)
downloadIshtar-8e19be1b27cf14cf0f76d7c4bcd81e520ac95407.tar.bz2
Ishtar-8e19be1b27cf14cf0f76d7c4bcd81e520ac95407.zip
Forms (operations, context records, files): add search by parcel (refs #575)
Diffstat (limited to 'archaeological_files/views.py')
-rw-r--r--archaeological_files/views.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/archaeological_files/views.py b/archaeological_files/views.py
index 3ef8c0f28..2b5003911 100644
--- a/archaeological_files/views.py
+++ b/archaeological_files/views.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2010-2012 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2010-2013 É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
@@ -60,7 +60,11 @@ def autocomplete_file(request):
for file in files])
return HttpResponse(data, mimetype='text/plain')
-get_file = get_item(models.File, 'get_file', 'file')
+get_file = get_item(models.File, 'get_file', 'file',
+ extra_request_keys={'parcel_0':'operations__parcels__section',
+ 'parcel_1':'operations__parcels__parcel_number',
+ },
+ )
show_file = show_item(models.File, 'file')
revert_file = revert_item(models.File)