Skip to content

Commit

Permalink
#44 some cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
averrin committed Aug 18, 2013
1 parent d677129 commit c3862a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emergent/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ def get_context_data(self, **kwargs):
context['users'] = get_user_model().objects.all()
return context

class ChatView(TemplateView):
class ChatView(LoginRequiredMixin, TemplateView):
template_name = 'emergent/chat.html'

def get_context_data(self, **kwargs):
context = super(ChatView, self).get_context_data(**kwargs)
return context


class ChatSendView(JSONResponseMixin, AjaxResponseMixin, View):
class ChatSendView(LoginRequiredMixin, JSONResponseMixin, AjaxResponseMixin, View):
def post_ajax(self, request, *args, **kwargs):
import pusher

Expand Down

0 comments on commit c3862a2

Please sign in to comment.