Foreign key of models should refer to a particular filed in db - Django

后端 未结 0 496
清酒与你
清酒与你 2021-01-22 09:59
class UserModel(AbstractUser):
   USERNAME_FIELD = \'username\'
   REQUIRED_FIELDS = [\'email\', \'password\']
   email = models.EmailField(unique=True)
   profile_image         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题