Merge pull request #721 from MikkelSchubert/patch-1

Add missing import in 'Models' example code
This commit is contained in:
Artem Malyshev 2017-08-14 16:39:03 +03:00 committed by GitHub
commit be07934deb

View File

@ -661,7 +661,7 @@ Let's see what that looks like, assuming we
have a ChatMessage model with ``message`` and ``room`` fields::
# In consumers.py
from channels import Channel
from channels import Channel, Group
from channels.sessions import channel_session
from .models import ChatMessage