title: Render Form ViewSet Django Rest Framework
body: <p>I would like to do the following:</p>
  
  <p>With my model</p>
  
  <pre><code>class User(models.Model):
     id = models.AutoField(primary_key=True)
     field1 = models.CharField(max_length=100)
     fk1 = models.ForeignKey(Group)
  goes on
  </code></pre>
  
  <p>After this, I created my Serializer, which looks like:</p>
  
  <pre><code>class UserSerializer(serializers.ModelSerializer):
      class Meta:
          model = UserSerializer
          fields = (...)
  
      ...
  </code></pre>
  
  <p>Lastly, I create my ViewSet, which should look like this:</p>
  
  <pre><code>class UserViewSet(viewsets.ModelViewSet):
      queryset = User.objects.all()
      serializer_class = UserSerializer
  </code></pre>
  
  <p>but now, how would I be able to create a viewSet and, for example, generate a form with my class? My final idea is to be able to do something like:</p>
  
  <pre><code>def my_view(request):
     my_form = UserViewSet.as_view({'get': 'list'}(request))
     # from here either to be able to use .render().content
     # or, inside the template, render with {% render_form my_form %}
  </code></pre>
  
  <p>Is this possible? Thank you</p>