2020-01-27 14:37:52 -06:00
|
|
|
from django.shortcuts import render
|
|
|
|
from django.utils.translation import gettext as _
|
2020-03-15 20:23:14 -06:00
|
|
|
from django.views.generic import ListView
|
2020-01-27 14:37:52 -06:00
|
|
|
|
2020-03-15 20:23:14 -06:00
|
|
|
from .models import Message
|
2020-01-27 14:37:52 -06:00
|
|
|
|
2020-03-15 20:23:14 -06:00
|
|
|
|
|
|
|
class ChatView(ListView):
|
|
|
|
model = Message
|
|
|
|
title = _('Chat Box')
|
|
|
|
template_name = 'chat/chat.html'
|