From 541168e703739da91da28d9564a6c2098a5fe5f2 Mon Sep 17 00:00:00 2001 From: duker Date: Mon, 3 Sep 2018 18:12:22 +0300 Subject: [PATCH] #550 Add code example for creating context --- shopelectro/context.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shopelectro/context.py b/shopelectro/context.py index 572e9a6b..7383cae5 100644 --- a/shopelectro/context.py +++ b/shopelectro/context.py @@ -4,8 +4,11 @@ It stands between urls and view functions. Every context class is used via objects composition. -For example: -TODO - add example of objects composition +Code example to create tagged: + +>>> from django.http import HttpRequest +>>> url_kwargs = {'slug': 'my-page'} +>>> Category(url_kwargs, request=HttpRequest()) | TaggedCategory() """ import typing