Skip to content

Commit

Permalink
pep. issue #51
Browse files Browse the repository at this point in the history
  • Loading branch information
averrin committed Aug 19, 2013
1 parent 6887ee5 commit 29ab5b9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion activity/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class Meta():
#fields = ("timestamp", "user", 'type', 'message')
list_display = ("timestamp", "user", 'type', 'message')

admin.site.register(Event, EventAdmin)
admin.site.register(Event, EventAdmin)
2 changes: 1 addition & 1 deletion activity/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class Event(models.Model):
("chat", "Chat"), ("other", "Other"))
)
message = models.TextField()
user = models.ForeignKey(get_user_model())
user = models.ForeignKey(get_user_model())
2 changes: 0 additions & 2 deletions activity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,3 @@ def post_ajax(self, request, *args, **kwargs):
"success": True
}
return self.render_json_response(json_dict)


1 change: 0 additions & 1 deletion emergent/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,3 @@ def get_context_data(self, **kwargs):
context = super(UserListView, self).get_context_data(**kwargs)
context['users'] = get_user_model().objects.all()
return context

2 changes: 1 addition & 1 deletion emergent/websockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ def __init__(self):
def send(self, channel, event, msg):
self.p[channel].trigger(event, msg)

Pusher = PusherWrapper()
Pusher = PusherWrapper()
4 changes: 2 additions & 2 deletions static/js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $(function(){
"</div>"
);

websocket_init()
websocket_init();

var editor = new EpicEditor({
theme: {
Expand All @@ -37,7 +37,7 @@ $(function(){
});

$.get("/activity/history", function(data){
console.log(data)
console.log(data);
_.each(data.history, function(e,i){
e.now = new Date().toLocaleTimeString();
$("#events").append(chat_message(e));
Expand Down

0 comments on commit 29ab5b9

Please sign in to comment.