﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17594	Tweak formset to remove extraneous query	Travis Swicegood	nobody	"A `ModelFormset.save` runs a `SELECT` due to its reliance on the `if not self.get_queryset():` line.  Immediately after that call, it loops over `self.initial_forms` and returns values set it that.  In the instance where `get_queryset()` is empty, `self.initial_forms` is also empty as far as I can tell.

This patch changes the `if not self.get_queryset()` to an `if not self.initial_forms` so the extra select is not run.  I've added tests that verify the behavior and have run the entire test suite.  Everything continues to pass so I believe this is a safe patch to apply, but it definitely needs a second opinion of someone more familiar with model formsets than I."	Cleanup/optimization	closed	Forms	1.4-alpha-1	Normal	fixed	modelformset,		Ready for checkin	1	0	0	0	0	0
