Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#1413 closed defect (fixed)

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

Reported by: akaihola Owned by: adrian
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 akaihola 10 years ago.
strip '.models' from module path in the error message

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by akaihola

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

comment:1 Changed 10 years ago by akaihola

  • Version set to magic-removal

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

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

  • Summary changed from ImportError raised for Models not in INSTALLED_APPS has invalid module path to [patch] ImportError raised for Models not in INSTALLED_APPS has invalid module path

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

  • Summary changed from [patch] ImportError raised for Models not in INSTALLED_APPS has invalid module path to [magic-removal] [patch] ImportError raised for Models not in INSTALLED_APPS has invalid module path

comment:4 Changed 10 years ago by adrian

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

(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