Clarified AppConfig.ready() docs example.

This commit is contained in:
Adam Johnson 2020-01-22 12:45:22 +00:00 committed by Carlton Gibson
parent 486a8dae2d
commit 971a84d6af
1 changed files with 11 additions and 6 deletions

View File

@ -256,8 +256,13 @@ Methods
Example::
from django.apps import AppConfig
from django.db.models.signals import pre_save
class RockNRollConfig(AppConfig):
# ...
def ready(self):
# importing model classes
from .models import MyModel # or...