Skip to content

Commit

Permalink
Add missing Meta.fields in docs example. (#1155)
Browse files Browse the repository at this point in the history
This example doesn't work as is, since a FilterSet with `Meta.model` requires `Meta.fields` (or `meta.exclude`).
  • Loading branch information
carltongibson committed Mar 4, 2020
1 parent bdb190b commit 3ee468b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/guide/tips.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ behavior as an ``isnull`` filter.

class Meta:
model = MyModel
fields = []


Filtering by relative times
Expand Down

0 comments on commit 3ee468b

Please sign in to comment.