Opened 6 years ago

Closed 6 years ago

#11761 closed (fixed)

DB error on TestCase execution

Reported by: dmishe Owned by: nobody
Component: Uncategorized Version: 1.1
Severity: Keywords:
Cc: dmishe@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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_

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.

Attachments (2) (509 bytes) - added by dmishe 6 years ago.
testcase (1.3 KB) - added by dmishe 6 years ago.
model, if that helps?

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by dmishe


Changed 6 years ago by dmishe

model, if that helps?

comment:1 Changed 6 years ago by dmishe

  • Cc dmishe@… added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 6 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

I suspect this is a dupe of #11936, which has been fixed in [11938]. Please reopen if the problem still exists for you.

Note: See TracTickets for help on using tickets.
Back to Top