79166229

Date: 2024-11-07 11:34:14
Score: 3
Natty:
Report link

In model constraints, you can only refer to fields of the model itself. If you want to reference fields of a ForeignKey model, you can override the clean() method. You can see an example here : https://stackoverflow.com/a/75640733/20712534

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Feleacan