[Answered ]-Null values in Django sub-model

2πŸ‘

βœ…

OK, I managed to solve this mess.

The problem here is that the model and the field have the same name (case-agnostic). I had this both in my problematic model, as well as the examples here (A.a and B.b).

This is a Django problem in that the error is simply irrelevant to the real issue.

Bottom line – don’t have any field the same name as the model name.

πŸ‘€Yuval Adam

Leave a comment