Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Fix typos in docs (foreign keys) (tortoise#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
SyedAhkam authored May 9, 2021
1 parent 817e77a commit 12701d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ or by directly accessing the DB-backing field:
somemodel.tournament_id=the_tournament.pk
Querying a relationship is typicall done by appending a double underscore, and then the foreign object's field. Then a normal query attr can be appended.
Querying a relationship is typically done by appending a double underscore, and then the foreign object's field. Then a normal query attr can be appended.
This can be chained if the next key is also a foreign object:

:samp:`{FKNAME}__{FOREIGNFIELD}__gt=3`
Expand All @@ -297,9 +297,9 @@ This can be chained if the next key is also a foreign object:

:samp:`{FKNAME}__{FOREIGNFK}__{VERYFOREIGNFIELD}__gt=3`

There is however one major limiatation. We don't want to restrict foreign column names, or have ambiguity (e.g. a foreign object may have a field called ``isnull``)
There is however one major limitation. We don't want to restrict foreign column names, or have ambiguity (e.g. a foreign object may have a field called ``isnull``)

Then this would be entierly ambugious:
Then this would be entirely ambigous:

:samp:`{FKNAME}__isnull`

Expand Down

0 comments on commit 12701d1

Please sign in to comment.