Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

made extra argument optional

  • Loading branch information...
commit 7562c1bc8df9d1b802ff5a2b81ac54cd5f748cf5 1 parent e59e695
@brosner brosner authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 eventlog/models.py
View
4 eventlog/models.py
@@ -23,9 +23,11 @@ class Meta:
ordering = ["-timestamp"]
-def log(user, action, extra):
+def log(user, action, extra=None):
if (user is not None and not user.is_authenticated()):
user = None
+ if extra is None:
+ extra = {}
if PUSHER_CONFIG:
try:
Please sign in to comment.
Something went wrong with that request. Please try again.