Commit dc279530 by Tom Christie

Merge pull request #1846 from barqshasbite/patch-1

Fixing quotes in filtering.md example code.
parents 880ec3fe fe06d96d
...@@ -193,7 +193,7 @@ filters using `Manufacturer` name. For example: ...@@ -193,7 +193,7 @@ filters using `Manufacturer` name. For example:
class ProductFilter(django_filters.FilterSet): class ProductFilter(django_filters.FilterSet):
class Meta: class Meta:
model = Product model = Product
fields = ['category', 'in_stock', 'manufacturer__name`] fields = ['category', 'in_stock', 'manufacturer__name']
This enables us to make queries like: This enables us to make queries like:
...@@ -211,7 +211,7 @@ This is nice, but it exposes the Django's double underscore convention as part o ...@@ -211,7 +211,7 @@ This is nice, but it exposes the Django's double underscore convention as part o
class Meta: class Meta:
model = Product model = Product
fields = ['category', 'in_stock', 'manufacturer`] fields = ['category', 'in_stock', 'manufacturer']
And now you can execute: And now you can execute:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment