Merge pull request #483 from adamchainz/patch-1

Reword 'abstract' -> 'mixin' in plain tutorial
This commit is contained in:
Syrus Akbary 2018-08-01 11:52:56 -07:00 committed by GitHub
commit 9351626ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,9 +179,9 @@ Create ``cookbook/ingredients/schema.py`` and type the following:
return Ingredient.objects.select_related('category').all()
Note that the above ``Query`` class is marked as 'abstract'. This is
because we will now create a project-level query which will combine all
our app-level queries.
Note that the above ``Query`` class is a mixin, inheriting from
``object``. This is because we will now create a project-level query
class which will combine all our app-level mixins.
Create the parent project-level ``cookbook/schema.py``: