Is there a model MultiField (any way to compose db models Fields in Django)? Or why would not that be a useful concept?
问题 When building a Django application, we were exposed to (forms) MultiValueField and MultiWidget . They seem like an interesting approach to compose their respective base classes, giving more modularity. Yet, now it seems to us that the actual piece that would make those two shine bright would be a db.models.MultiField . Here is the reasoning: It seems that, when using a ModelForm, Django is enforcing a strict 1-to-1 association between a models.Field and a forms.Field. Now, with forms