summaryrefslogtreecommitdiff
path: root/archaeological_files
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_files')
-rw-r--r--archaeological_files/forms.py8
-rw-r--r--archaeological_files/locale/django.pot58
-rw-r--r--archaeological_files/models.py2
3 files changed, 33 insertions, 35 deletions
diff --git a/archaeological_files/forms.py b/archaeological_files/forms.py
index 45a05b9b1..d8738f511 100644
--- a/archaeological_files/forms.py
+++ b/archaeological_files/forms.py
@@ -209,7 +209,7 @@ class FileFormGeneral(ManageOldType, forms.Form):
validators=[valid_id(Person)])
year = forms.IntegerField(label=_("Year"),
initial=lambda: datetime.datetime.now().year,
- validators=[validators.MinValueValidator(1900),
+ validators=[validators.MinValueValidator(1600),
validators.MaxValueValidator(2100)])
numeric_reference = forms.IntegerField(
label=_("Numeric reference"), widget=forms.HiddenInput, required=False)
@@ -336,10 +336,8 @@ class FileFormResearch(ManageOldType, forms.Form):
'requested_operation_type': OperationType,
'organization': Organization,
'department': Department}
- department = widgets.MultipleAutocompleteField(
- model=Department,
- label=_("Departments"),
- required=False)
+ department = widgets.Select2MultipleField(
+ model=Department, label=_("Departments"), required=False)
scientist = forms.IntegerField(
widget=widgets.JQueryAutoComplete(
reverse_lazy(
diff --git a/archaeological_files/locale/django.pot b/archaeological_files/locale/django.pot
index 1e513ae12..62dcf19ae 100644
--- a/archaeological_files/locale/django.pot
+++ b/archaeological_files/locale/django.pot
@@ -9,7 +9,7 @@
msgid ""
msgstr ""
-#: forms.py:47 forms.py:210 forms.py:255 forms.py:396 forms.py:423
+#: forms.py:47 forms.py:210 forms.py:255 forms.py:394 forms.py:421
#: models.py:108 templates/ishtar/sheet_file.html:144
msgid "Year"
msgstr ""
@@ -22,15 +22,15 @@ msgstr ""
msgid "Other reference"
msgstr ""
-#: forms.py:52 forms.py:431
+#: forms.py:52 forms.py:429
msgid "Parcel (section/number/public domain)"
msgstr ""
-#: forms.py:55 forms.py:407 forms.py:434 models.py:558
+#: forms.py:55 forms.py:405 forms.py:432 models.py:558
msgid "Department"
msgstr ""
-#: forms.py:56 forms.py:443
+#: forms.py:56 forms.py:441
msgid "File name"
msgstr ""
@@ -54,7 +54,7 @@ msgstr ""
msgid "Permit reference"
msgstr ""
-#: forms.py:63 forms.py:227 forms.py:364 models.py:180
+#: forms.py:63 forms.py:227 forms.py:362 models.py:180
#: templates/ishtar/sheet_file.html:97
msgid "Comment"
msgstr ""
@@ -63,19 +63,19 @@ msgstr ""
msgid "In charge"
msgstr ""
-#: forms.py:72 forms.py:281 forms.py:445 models.py:126
+#: forms.py:72 forms.py:281 forms.py:443 models.py:126
msgid "General contractor"
msgstr ""
-#: forms.py:79 forms.py:453
+#: forms.py:79 forms.py:451
msgid "Organization of general contractor"
msgstr ""
-#: forms.py:87 forms.py:476
+#: forms.py:87 forms.py:474
msgid "Created by"
msgstr ""
-#: forms.py:94 forms.py:484
+#: forms.py:94 forms.py:482
msgid "Modified by"
msgstr ""
@@ -169,83 +169,83 @@ msgstr ""
msgid "Research archaeology"
msgstr ""
-#: forms.py:341 models.py:183 templates/ishtar/sheet_file.html:88
+#: forms.py:340 models.py:183 templates/ishtar/sheet_file.html:88
msgid "Departments"
msgstr ""
-#: forms.py:351 models.py:192
+#: forms.py:349 models.py:192
msgid "Scientist in charge"
msgstr ""
-#: forms.py:353 models.py:186 templates/ishtar/sheet_file.html:90
+#: forms.py:351 models.py:186 templates/ishtar/sheet_file.html:90
msgid "Requested operation type"
msgstr ""
-#: forms.py:355
+#: forms.py:353
msgid "Lead organization"
msgstr ""
-#: forms.py:371 models.py:196 templates/ishtar/sheet_file.html:95
+#: forms.py:369 models.py:196 templates/ishtar/sheet_file.html:95
msgid "Classified area"
msgstr ""
-#: forms.py:373 models.py:198 templates/ishtar/sheet_file.html:96
+#: forms.py:371 models.py:198 templates/ishtar/sheet_file.html:96
msgid "Protected area"
msgstr ""
-#: forms.py:387
+#: forms.py:385
msgid "Would you like to close this archaeological file?"
msgstr ""
-#: forms.py:392
+#: forms.py:390
msgid "Would you like to delete this archaeological file ?"
msgstr ""
-#: forms.py:397 forms.py:424 forms.py:547
+#: forms.py:395 forms.py:422 forms.py:545
msgid "Index"
msgstr ""
-#: forms.py:401 forms.py:428 forms.py:533
+#: forms.py:399 forms.py:426 forms.py:531
msgid "Act type"
msgstr ""
-#: forms.py:402
+#: forms.py:400
msgid "Object (full text search)"
msgstr ""
-#: forms.py:429
+#: forms.py:427
msgid "Indexed?"
msgstr ""
-#: forms.py:435
+#: forms.py:433
msgid "Object"
msgstr ""
-#: forms.py:439
+#: forms.py:437
msgid "Signature date after"
msgstr ""
-#: forms.py:441
+#: forms.py:439
msgid "Signature date before"
msgstr ""
-#: forms.py:461
+#: forms.py:459
msgid "File numeric reference"
msgstr ""
-#: forms.py:462
+#: forms.py:460
msgid "File year"
msgstr ""
-#: forms.py:464
+#: forms.py:462
msgid "File other reference"
msgstr ""
-#: forms.py:466
+#: forms.py:464
msgid "File in charge"
msgstr ""
-#: forms.py:474
+#: forms.py:472
msgid "File permit reference"
msgstr ""
diff --git a/archaeological_files/models.py b/archaeological_files/models.py
index 7f37a298f..52f628817 100644
--- a/archaeological_files/models.py
+++ b/archaeological_files/models.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2012-2016 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2012-2017 É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