From b9d2f534c46d6b88b4a3d7333cd31c7a3d67e1d7 Mon Sep 17 00:00:00 2001 From: Maik Hoepfel Date: Tue, 18 Oct 2016 19:07:56 +0200 Subject: [PATCH] Fix formatting for generics docs (#403) The paragraph was lacking the double colon to treat the http_user example code as a code block. --- docs/generics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/generics.rst b/docs/generics.rst index 96d4d87..aa6f3c4 100644 --- a/docs/generics.rst +++ b/docs/generics.rst @@ -224,7 +224,7 @@ This will run the appropriate decorator around your handler methods, and provide the one passed in to your handler as an argument as well as ``self.message``, as they point to the same instance. -And if you just want to use the user from the django session, add ``http_user``: +And if you just want to use the user from the django session, add ``http_user``:: class MyConsumer(WebsocketConsumer):