tidy up some longs related stuff

This commit is contained in:
Ross
2024-07-08 13:14:11 +01:00
parent bcfcd8da82
commit 19a9a27747
11 changed files with 140 additions and 44 deletions
+2 -2
View File
@@ -89,9 +89,9 @@ class AuthorOrCheckerRequiredMixin(object):
@register.filter
def get_item(dictionary, key):
def get_item(dictionary, key, default=None):
if dictionary is None:
return None
return default
return dictionary.get(key)