summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-08 18:13:35 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-08 18:13:35 +0200
commitf54d386b714f3a1abef103006e36972776d2028e (patch)
tree2cba33588e42ec214b3d30b4825e36e7c4e47b40 /archaeological_operations/models.py
parent316dc98ccdee59d6d4709f2a9e253cc258b2037e (diff)
parentaef35a14f4bd3f3f87c1e19188d57cc66e6694b6 (diff)
downloadIshtar-f54d386b714f3a1abef103006e36972776d2028e.tar.bz2
Ishtar-f54d386b714f3a1abef103006e36972776d2028e.zip
Merge branch 'master-warehouse'
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