我有一份来自UserCreationForm的登记表,我用以下内容覆盖了它:from django.contrib.auth.modelsimport Userimport re
from django.core.exceptions import ObjectDoesNotExistkeyword argument 'unique&
为什么这会显示警告,因为默认情况下,从用户模型中获取主键,所以我也应该再次声明主键,即注册或候选模型。models.pyfrom django.contrib.auth.models import User
# Create your modelspoll.candidate: (models.W042) Auto-created primary key used when not defining a primary key type, by default '