title: Django error takes exactly 2 arguments (1 given)
body: <p>i want to create form with inline form but i am getting error</p>
  
  <blockquote>
    <p>vehicle_group_add() takes exactly 2 arguments (1 given)</p>
  </blockquote>
  
  <p>views.py</p>
  
  <pre><code>def vehicle_group_add(request, pk):
  group = Vehicle_group.object.get(pk=pk)
  if request.method == "POST":
      form = VehicleInlineFormset(request.POST, request.FILES, instance=group)
      if form.is_valid():
          post = form.save(commit=False)
          post.save()
          return redirect('vehicle_group_add.html', pk=post.pk)
  else:
      form = VehicleInlineFormset(instance=group)
  return render(request,'vehicle_group_add.html', {'form': form}, context_instance= RequestContext(request))
  </code></pre>
  
  <p>forms.py</p>
  
  <pre><code>    class VehicleGroup(forms.ModelForm):
  
          class Meta:
              model  = Vehicle_group      
              fields  = ['name_group','description','manufacture','manufacture_type']
  
      class VehicleAttribute(forms.ModelForm):
  
          class Meta:
              model  = Vehicle_attribute      
              fields  = ['operation','payload_meter','payload_limit_low','payload_limit_high']
  
      VehicleInlineFormset = inlineformset_factory(Vehicle_group, Vehicle_attribute, fields=('operation',))
  </code></pre>
  
  <p>i am using django versi 1.8.2</p>
  
  <p>can you help me solve this problem?</p>