api tests: make test work on both sqlite and postgresql
api tests: make test work on both sqlite and postgresql

See https://code.djangoproject.com/ticket/27813

terceiro/squad,terceiro/squad,terceiro/squad,terceiro/squad