File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class User(models.Model):
57
57
two properties are created, ` team ` as expected, and ` team_id ` . Also, a related
58
58
manager called ` user_set ` is created on ` Team ` for the reverse access.
59
59
60
- In order to properly add typing to the foreing key itself and also for the created ids you can do
60
+ In order to properly add typing to the foreign key itself and also for the created ids you can do
61
61
something like this:
62
62
63
63
``` python
@@ -66,7 +66,7 @@ from typing import TYPE_CHECKING
66
66
from someapp.models import Team
67
67
if TYPE_CHECKING :
68
68
# In this example Role cannot be imported due to circular import issues,
69
- # but doing so inside TYPE_CHECKING will make sure that the typing bellow
69
+ # but doing so inside TYPE_CHECKING will make sure that the typing below
70
70
# knows what "Role" means
71
71
from anotherapp.models import Role
72
72
@@ -191,7 +191,7 @@ def activity(request: AuthedHttpRequest, team_id: str) -> HttpResponse:
191
191
```
192
192
193
193
You can also get more strict with your ` login_required ` decorator so that the
194
- first argument of the fuction it is decorating is ` AuthedHttpRequest ` :
194
+ first argument of the function it is decorating is ` AuthedHttpRequest ` :
195
195
196
196
``` python
197
197
from typing import Any, Union, TypeVar, cast
You can’t perform that action at this time.
0 commit comments