converting unicode to string, 'cannot convert argument to integer' bug t...

There is the bug in current version, then you trying to create new device > django trowing convertation error. Current device_id field is unicode not string.
Please check this code.