name="prevent_self_follow",
check=~Q(follower=F('following')) ), models.UniqueConstraint( fields=['follower', 'following'], name='unique_follow' ) ]
HTML 原文 · 完整 Markdown · 纯文本 · 分段目录 · ← 上一段 · 下一段 →
name="prevent_self_follow",
check=~Q(follower=F('following')) ), models.UniqueConstraint( fields=['follower', 'following'], name='unique_follow' ) ]