你好,
好吧,我尝试将 ArrayField 添加到我的模型之一,但是在使用 migrate 时,我收到此错误:
C:\Users\ordinateur\Documents\AAA\jeanclaude56>python manage.py migrate
System check identified some issues:
WARNINGS:
guide.Jeu.genre: (fields.W340) null has no effect on ManyToManyField.
guide.Jeu.missionsPrincipales: (postgres.E003) ArrayField default should be a callable instead of an instance so that it's not shared between all field instances.
HINT: Use a callable instead, e.g., use `list` instead of `[]`.
Operations to perform:
Apply all migrations: accueil, admin, auth, contenttypes, guide, sessions, thumbnail
Running migrations:
Applying guide.0011_jeu_missionsprincipales...Traceback (most recent call last):
File "manage.py", line 15, …Run Code Online (Sandbox Code Playgroud)