I've already tried the select_related in my queryset. No change at all.
>>Also keep in mind that Django (or any other framework) has no idea
whether or not fields have "changed" in a form submission without pulling
the original set of values to compare against, so expect the object to be
On Jul 24, 2017 4:09 AM, "johan de taeye" wrote:
I have a model that has a foreign key relation to a number of other objects.
When saving an instance of this model from the admin (or a ModelForm), I
see plenty of extra and redundant database calls.
For a single record
I have a model that has a foreign key relation to a number of other objects.
When saving an instance of this model from the admin (or a ModelForm), I
see plenty of extra and redundant database calls.
For a single record it wouldn't make much of a difference, but when using
the same ModeForm to
3 matches
Mail list logo