Fix of the format command

Error when running syncdb 

import_module("{}.{}".format(app, submodule))
ValueError: zero length field name in format