title: How to handle inline formset in post method of generic CreateView?
body: <p>I have a form and inline formset, both on the same page to update Ad and Picture model. Here is the code:</p>
  <pre><code>class AdCreateView(CreateView):
  form_class = AdForm
  template_name = 'main/ad_create.html'
  success_url = '/ads'
  
  def get_context_data(self, **kwargs):
      context = super().get_context_data(**kwargs)
      context['picture_form'] = ImageFormset()
      return context
  
  def post(self, request, *args, **kwargs):
      form = ????
      picture_form = ???
  
      if form.is_valid() and picture_form.is_valid():            
            **somehow save data from both forms to DB.**
            ???
      return ?
  </code></pre>
  <p>So the question is, how can I take the inline formset in post method and validate and save it? And what should I return?</p>
  <p>I mean is this a proper way of doing it or maybe there are other ways to do it.</p>