summaryrefslogtreecommitdiff
path: root/archaeological_files/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-24 18:04:01 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-07-21 15:07:41 +0200
commit4f8fe31ad39bf0b82842690aeedf20a50d8812df (patch)
tree750a9c700bf58b358e600c430f23934a1bbf6332 /archaeological_files/models.py
parent7aa1ab1b09bcafb2f806e389f4b7090332004e55 (diff)
downloadIshtar-4f8fe31ad39bf0b82842690aeedf20a50d8812df.tar.bz2
Ishtar-4f8fe31ad39bf0b82842690aeedf20a50d8812df.zip
♻️ django 3.2 - new version of libraries: fix errors and deprecation warnings
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r--archaeological_files/models.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py
index 1aeb191cf..1f3475537 100644
--- a/archaeological_files/models.py
+++ b/archaeological_files/models.py
@@ -99,7 +99,7 @@ class Job(GeneralType):
)
ground_daily_cost = models.FloatField(_("Ground daily cost"), blank=True, null=True)
daily_cost = models.FloatField(_("Daily cost"), blank=True, null=True)
- permanent_contract = models.NullBooleanField(
+ permanent_contract = models.BooleanField(
_("Permanent contract"), blank=True, null=True
)
default_daily_need_on_ground = models.FloatField(
@@ -790,16 +790,16 @@ class File(
research_comment = models.TextField(
_("Research archaeology comment"), blank=True, default=""
)
- classified_area = models.NullBooleanField(
+ classified_area = models.BooleanField(
_("Classified area"), blank=True, null=True
)
- protected_area = models.NullBooleanField(_("Protected area"), blank=True, null=True)
+ protected_area = models.BooleanField(_("Protected area"), blank=True, null=True)
if settings.COUNTRY == "fr":
- cira_advised = models.NullBooleanField("Passage en CIRA", blank=True, null=True)
- mh_register = models.NullBooleanField(
+ cira_advised = models.BooleanField("Passage en CIRA", blank=True, null=True)
+ mh_register = models.BooleanField(
"Sur Monument Historique classé", blank=True, null=True
)
- mh_listing = models.NullBooleanField(
+ mh_listing = models.BooleanField(
"Sur Monument Historique inscrit", blank=True, null=True
)
# <-- research archaeology