diff options
| author | Adam Johnson <me@adamj.eu> | 2020-01-05 10:04:51 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-01-06 13:50:43 +0100 |
| commit | 2ea3fb3e6386c43f124b542e92b817dbc227c76b (patch) | |
| tree | 2decee1530b738f997c05b2c9b4438659125935a /docs/topics/db | |
| parent | 1487f16f2d29c7aeaf48117d02a1d7bbeafa3d94 (diff) | |
Removed "Don't do that" from docs and error messages.
It's slightly aggressive and doesn't explain itself.
Diffstat (limited to 'docs/topics/db')
| -rw-r--r-- | docs/topics/db/managers.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/topics/db/managers.txt b/docs/topics/db/managers.txt index 1b34bea69b..473965d897 100644 --- a/docs/topics/db/managers.txt +++ b/docs/topics/db/managers.txt @@ -228,9 +228,8 @@ model. In those situations, Django has to be able to see all the objects for the model it is fetching, so that *anything* which is referred to can be retrieved. -If you override the ``get_queryset()`` method and filter out any rows, Django -will return incorrect results. Don't do that. A manager that filters results -in ``get_queryset()`` is not appropriate for use as a base manager. +Therefore, you should not override ``get_queryset()`` to filter out any rows. +If you do so, Django will return incomplete results. .. _calling-custom-queryset-methods-from-manager: |
