[Patchew-devel] [PATCH 06/12] models: create Result model
Paolo Bonzini
pbonzini at redhat.com
Tue May 29 22:44:26 UTC 2018
On 30/05/2018 00:39, Paolo Bonzini wrote:
> 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.
Oh, and regarding the post itself, that seems great. It should create
exactly the same tables, but with a better mapping back to objects.
I'll take a look when I have some time.
Thanks,
Paolo
More information about the Patchew-devel
mailing list