mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Merge pull request #1846 from barqshasbite/patch-1
Fixing quotes in filtering.md example code.
This commit is contained in:
commit
dc279530c7
|
@ -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
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user