tidy up some longs related stuff
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user