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

Fam Zheng famz at redhat.com
Wed May 23 01:28:38 UTC 2018


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/

?

Fam




More information about the Patchew-devel mailing list