Import models when django ready
Since we store model's instances in cache, this will help django figure out the correct model when unserializing cache data.
This commit is contained in:
parent
04f9fe8252
commit
4d56d18a24
2 changed files with 4 additions and 1 deletions
|
@ -3,3 +3,6 @@ from django.apps import AppConfig
|
|||
|
||||
class ChatBoxConfig(AppConfig):
|
||||
name = "chat_box"
|
||||
|
||||
def ready(self):
|
||||
from . import models
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue