Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more compatible import approach
  • Loading branch information
matteius committed Sep 25, 2017
commit 64bc395759ce87d2170beb4ae77e24715f141c18
2 changes: 1 addition & 1 deletion rest_framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| |\ \| |___/\__/ / | | | | | | | (_| | | | | | | __/\ V V / (_) | | | <
\_| \_\____/\____/ \_/ |_| |_| \__,_|_| |_| |_|\___| \_/\_/ \___/|_| |_|\_|
"""
import checks # NOQA
from .checks import * # NOQA
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docs on Registering and labeling checks suggest using an AppConfig.ready(). I think we should follow that.

Docs on AppConfig configuration

  1. Add the AppConfig class in rest_framwork/apps.py.
  2. Import check in ready, with comment explaining purpose.
  3. Set default_app_config here.


__title__ = 'Django REST framework'
__version__ = '3.6.3'
Expand Down