Skip to content

Commit

Permalink
used wrong function name in MethodFilter example
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymullen committed Dec 1, 2015
1 parent 1b24a6d commit 922ec27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Though you would need to pass in the actual function value, not it's name.

class F(django_filters.FilterSet):
# Notice: In this case, action accepts a func, not a string
username = MethodFilter(action=filter_username)
username = MethodFilter(action=my_custom_filter)

class Meta:
model = User
Expand Down

0 comments on commit 922ec27

Please sign in to comment.