Clarified AppConfig.ready() docs example.
This commit is contained in:
parent
486a8dae2d
commit
971a84d6af
|
@ -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...
|
||||
|
|
Loading…
Reference in New Issue