File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Convert any Django view into a IDOM component by using this decorator. Compatibl
51
51
52
52
=== "Function Based View"
53
53
54
- ```python
54
+ ```python linenums="1"
55
55
...
56
56
57
57
@view_to_component(compatibility=True)
@@ -62,7 +62,7 @@ Convert any Django view into a IDOM component by using this decorator. Compatibl
62
62
63
63
=== "Class Based View"
64
64
65
- ```python
65
+ ```python linenums="1"
66
66
...
67
67
68
68
@view_to_component(compatibility=True)
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ The function you provide into this hook must return either a `Model` or `QuerySe
70
70
71
71
=== "components.py"
72
72
73
- ```python
73
+ ```python linenums="1"
74
74
from idom import component
75
75
from django_idom.hooks import use_query
76
76
@@ -107,7 +107,7 @@ The function you provide into this hook must return either a `Model` or `QuerySe
107
107
108
108
=== "components.py"
109
109
110
- ```python
110
+ ```python linenums="1"
111
111
from idom import component
112
112
from django_idom.types import QueryOptions
113
113
from django_idom.hooks import use_query
@@ -141,7 +141,7 @@ The function you provide into this hook must return either a `Model` or `QuerySe
141
141
142
142
=== "components.py"
143
143
144
- ```python
144
+ ```python linenums="1"
145
145
from example_project.my_app.models import MyModel
146
146
from idom import component
147
147
from django_idom.types import QueryOptions
@@ -239,7 +239,7 @@ The function you provide into this hook will have no return value.
239
239
240
240
=== "components.py"
241
241
242
- ```python
242
+ ```python linenums="1"
243
243
from idom import component
244
244
from django_idom.hooks import use_mutation
245
245
You can’t perform that action at this time.
0 commit comments