[Patchew-devel] [PATCH 06/12] models: create Result model

Paolo Bonzini pbonzini at redhat.com
Tue May 29 22:39:44 UTC 2018


On 23/05/2018 03:28, Fam Zheng wrote:
> On Tue, 05/22 17:33, Paolo Bonzini wrote:
>> On 22/05/2018 17:14, Fam Zheng wrote:
>> So I think we should look at the database structure and decide if it's
>> okay.  If it is, how we represent it in Django is relatively
>> unimportant.  Of the two, I somewhat prefer the two intermediate tables
>> from ManyToManyField, rather than the two fields in the result tables
>> from OneToManyField.
> 
> Maybe this works:
> 
> https://godjango.com/blog/django-abstract-base-class-multi-table-inheritance/

Related to this, should the logs be in a separate table with 1-to-1
relation?  This would be less hackish than peppering defer('log_xz')
everywhere.

Paolo




More information about the Patchew-devel mailing list