Django: Perform model validation on worker init.  Closes #1681
Import StringIO/BytesIO from io module