Skip to content

Replace import_object() with Django's import_string() #10699

Closed
@jeremystretch

Description

@jeremystretch

Proposed Changes

extras.plugins.utils defines a custom import_object() function, which is used to dynamically import modules specified by a string. This can be removed and replaced with Django's own import_string() function.

Although this is not a documented part of the plugins API, we should bind this to a minor release to avoid any surprises for plugin authors who opted to use it.

Justification

Eliminates unnecessary code and leverages a Django utility.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: deprecationRemoval of existing functionality or behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions