Commit 0d2692b
authored
posts_list is a function and returns the result of render
We wprowadzeniu do Pythona zdefiniowaliśmy słowo "metoda" jako coś powiązanego z obiektem - jest to zresztą zgodne z tym co można znaleźć w internecie. W takim razie nie mieszajmy pojęć funkcja i metoda.
Jest też tak, że funkcja `post_list` zwraca wynik funkcji `render`, a nie samą funkcję `render`.1 parent d226261 commit 0d2692b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments