Code

Opened 8 years ago

Closed 8 years ago

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

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by akaihola

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

comment:1 Changed 8 years ago by akaihola

  • Version set to magic-removal

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

comment:2 Changed 8 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 8 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 8 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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.