title: How to get a model object using model name string in Django
body: <p>Desciption:</p>
  
  <p>I have a generic function</p>
  
  <pre><code>def gen(model_name,model_type): 
        objects = model_name.objects.all()
        for object in objects:
            object.model_type = Null      (Or some activity)
            object.save()
  </code></pre>
  
  <p>How Can I achieve the above ? Is it possible?</p>