Skip to content

Commit

Permalink
Fix event message add method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmask committed Oct 31, 2014
1 parent 4c7bb01 commit 259e6dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions opps/liveblogging/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def post(self, request, *args, **kwargs):

if msg:
obj.message = msg

obj.user = request.user
obj.extra = _list

if published:
signals.message_pre_save.send(
Expand Down Expand Up @@ -202,8 +202,7 @@ def post(self, request, *args, **kwargs):
sender=self.__class__, instance=obj, extra_data=_list)
else:
obj = Message(
message=msg, user=request.user, event=event, published=True,
extra=_list)
message=msg, user=request.user, event=event, published=True)


signals.message_pre_save.send(
Expand Down

0 comments on commit 259e6dc

Please sign in to comment.