We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a22651b commit 9309247Copy full SHA for 9309247
1 file changed
morango/models/core.py
@@ -900,6 +900,8 @@ def deferred_clean_fields(self):
900
for field in self._meta.fields:
901
if not isinstance(field, models.ForeignKey):
902
continue
903
+ # by not excluding the field if it's null, the default validation logic will apply
904
+ # and should raise a ValidationError if the FK field is not nullable
905
if getattr(self, field.attname) is None:
906
907
excluded_fields.append(field.name)
0 commit comments