Skip to content
Snippets Groups Projects
Commit f58bb662 authored by Tom Robinson's avatar Tom Robinson
Browse files

Don't parse timestamp values into an int even if the base_type is an int

parent 098012ff
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,9 @@ 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" ||
if (this.state.fieldDef.special_type === "timestamp_milliseconds" ||
this.state.fieldDef.special_type === "timestamp_seconds") {
} else if (this.state.fieldDef.base_type === "IntegerField" ||
this.state.fieldDef.base_type === "SmallIntegerField" ||
this.state.fieldDef.base_type === "BigIntegerField") {
value = parseInt(value);
......
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