On Fri, Aug 21, 2009 at 6:38 PM, dmishe<[email protected]> wrote: > > Ok, so i've 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 > line. > > Right now i can't 100% reproduce it in some small test, i have 6 > TestCase and 2 TransactionTestCase in a file. Strange thing is when i > remove some of tests it works and then i try to single out one of them > - it works fine again. And if leave everything - it fails. > > Also tested on mysql with myisam and innodb - same thing. Django 1.1.
This is definitely weird. I strongly suspect you've found a bug > Should i file a bugreport? Yes - although try to narrow down the problem a little bit more first. Ultimately, what we need is a reproducible test case - a block of code or a sample project that throws the error. If you know the conditions under which the problem _doesn't_ happen with the same code (e.g., if you run tests in a particular order, or only a subset of tests), that detail is helpful too. It doesn't matter if the test case project is large - although obviously, smaller is better. Reproducible is the first important step. There are a few telltale signs in the error message you have presented, but by itself, that's not enough to reproduce - and thereby fix - the problem. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

