From 8835b5bc7ab9b9c8c94c50cd3f49d46c4fc10a2e Mon Sep 17 00:00:00 2001 From: Anil Khatri Date: Thu, 5 Sep 2019 10:19:47 +0530 Subject: [PATCH] Fixed syntax to display the excule snippet. --- docs/notequal_query.rst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/notequal_query.rst b/docs/notequal_query.rst index 444d8ba..429b34c 100644 --- a/docs/notequal_query.rst +++ b/docs/notequal_query.rst @@ -22,11 +22,7 @@ Our SQL query for the above condition will look something like :: .. image:: sqluser_notquery.png -Method 1 using exclude - -.. code-block - - +Method 1 using exclude :: >>> queryset = User.objects.exclude(id__lt=5) >>> queryset