How do you add a constraint? in the models.py in Django to check the variable the models get?

前端 未结 0 1475
谎友^
谎友^ 2020-12-09 10:28

I have a code as the following:

# models.py

class UserFollower(models.Model):
    user_id = models.ForeignKey(CustomUser, related_name="following",         


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