Commit 6e5757d1 authored by Serge S. Koval's avatar Serge S. Koval Committed by GitHub

Merge pull request #1433 from benhoyt/patch-1

Allow specifying a primary key field in column_filters (of a peewee ModelView)
parents 8d2904aa ab583588
......@@ -319,7 +319,7 @@ class FilterConverter(filters.BaseFilterConverter):
def conv_bool(self, column, name):
return [f(column, name) for f in self.bool_filters]
@filters.convert('IntegerField', 'BigIntegerField')
@filters.convert('IntegerField', 'BigIntegerField', 'PrimaryKeyField')
def conv_int(self, column, name):
return [f(column, name) for f in self.int_filters]
......
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