summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-08 18:30:15 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-08 18:30:15 +0200
commit8486380780073057736944ac6e6ef0aca9a52eec (patch)
tree83ab0b4fd2b1356f1e03d72f9562e730efcca165 /archaeological_operations/models.py
parentbbed42d3287dcbb47fadf1ed926dfdfe5fb3d93f (diff)
parent3714f0d1f3e8610d1fa789c8ea33e7fc9f773f25 (diff)
downloadIshtar-8486380780073057736944ac6e6ef0aca9a52eec.tar.bz2
Ishtar-8486380780073057736944ac6e6ef0aca9a52eec.zip
Merge branch 'master' into v0.9
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index e3453f0cf..6ae05ca30 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -359,8 +359,6 @@ class Operation(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem,
@classmethod
def get_available_operation_code(cls, year=None):
- if not year:
- year = datetime.date.today().year
max_val = cls.objects.filter(year=year).aggregate(
Max('operation_code'))["operation_code__max"]
return (max_val + 1) if max_val else 1