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:
cuom1999 2024-05-03 15:22:24 -05:00
parent 04f9fe8252
commit 4d56d18a24
2 changed files with 4 additions and 1 deletions

View file

@ -3,3 +3,6 @@ from django.apps import AppConfig
class ChatBoxConfig(AppConfig):
name = "chat_box"
def ready(self):
from . import models