Opened 18 years ago

Closed 18 years ago

Last modified 18 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: no UI/UX: no

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 18 years ago.
strip '.models' from module path in the error message

Download all attachments as: .zip

Change History (5)

by Antti Kaihola, 18 years ago

Attachment: model-import-error.diff added

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

comment:1 by Antti Kaihola, 18 years ago

Version: magic-removal

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

comment:2 by akaihola <antti.kaihola@…>, 18 years ago

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 by akaihola <antti.kaihola@…>, 18 years ago

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 by Adrian Holovaty, 18 years ago

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