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