Skip to content
Snippets Groups Projects
Commit 10a891ac authored by Allen Gilliland's avatar Allen Gilliland
Browse files

fix filter widget value casting for SmallIntegerField type.

parent bbc9e6df
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,7 @@ export default React.createClass({
if (value && value.length > 0) {
// value casting. we need the value in the filter to be of the proper type
if (this.state.fieldDef.base_type === "IntegerField" ||
this.state.fieldDef.base_type === "SmallIntegerField" ||
this.state.fieldDef.base_type === "BigIntegerField") {
value = parseInt(value);
} else if (this.state.fieldDef.base_type === "BooleanField") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment