Active data in django inlineformset_factory
I have a brand table that contains active and inactive record of brand. I have created bill using inlineformset_factory that contain brand. It display both active and inactive brands in formset. I want only active brands in form.