Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#1413 closed defect (fixed)

[magic-removal] [patch] ImportError raised for Models not in INSTALLED_APPS has invalid module path

Reported by: Antti Kaihola Owned by: Adrian Holovaty
Component: Core (Other) Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The code checks for the model's module by removing '.models' from the end of the string, but the error message still uses full model path.

Attachments (1)

model-import-error.diff (735 bytes) - added by Antti Kaihola 11 years ago.
strip '.models' from module path in the error message

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by Antti Kaihola

Attachment: model-import-error.diff added

strip '.models' from module path in the error message

comment:1 Changed 11 years ago by Antti Kaihola

Version: magic-removal

And, to be exact, this concerns the magic-removal branch.

comment:2 Changed 11 years ago by akaihola <antti.kaihola@…>

Summary: ImportError raised for Models not in INSTALLED_APPS has invalid module path[patch] ImportError raised for Models not in INSTALLED_APPS has invalid module path

comment:3 Changed 11 years ago by akaihola <antti.kaihola@…>

Summary: [patch] ImportError raised for Models not in INSTALLED_APPS has invalid module path[magic-removal] [patch] ImportError raised for Models not in INSTALLED_APPS has invalid module path

comment:4 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [2438]) magic-removal: Fixed #1413 -- Fixed error message when a model isn't in INSTALLED_APPS. Thanks, akaihola

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