DB error on TestCase execution
|Reported by:||Dmitry Shevchenko||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
While testing my app, everything was ok, when suddenly postgres
started to throw errors (in log) like this:
INSERT INTO "auth_permission" ("name", "content_type_id", "codename") VALUES (E'Can add item_ deferred_added_by_id_date_added_date_updated_item_type_prefix_raw_title_search_data_slug_subtitle_title', 17, E'add_item_deferred_added_by_id_date_added_date_updated_item_type_prefix_raw_title_search_data_slug_subtitle_title')
I don't know why django thinks i have a model with such name. I have
model Item with fields added_by, date_added and so on from that INSERT
I've attached a small but very obscure test suite which fails,
i have no idea why, but removing anything from it will result in test running OK.
Django 1.1, postgres 8.3.7, mysql (tested on myisam and innodb) 5.0.