Skip to content

Commit

Permalink
Merge pull request #335 from timothymullen/patch-1
Browse files Browse the repository at this point in the history
Correct wrong function name in MethodFilter example
  • Loading branch information
Carlton Gibson committed Dec 1, 2015
2 parents 1b24a6d + 922ec27 commit feff453
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 feff453

Please sign in to comment.