I have a table that I cannot control, but need to select from it. The field \"building\" is a varchar, and also defined like this in my (non managed) django model. But it should
try simple int(you string value)
int(you string value)
for example:
str = "00100" int(str)
will give 100 as integer value. same applies for
str = "100100" int(str)
gives 100100 as integer