Not anywhere close. Done properly, that function would be less than a quarter of the number of lines of the current function. (See the modified example function that I provided for you at select a valid Choice While using ModelChoiceField and queryset - #32 by KenWhitesell)
1 Like