title: Django, Python, trying to  change field values / attributes in object retrieved from DB objects.all call, not working
body: <p>I'm trying to change a specific field from a field in an object that I retrieved from a django db call.</p>
  
  <pre><code>class Dbobject ()
     def __init__(self):
         dbobject = Modelname.objects.all()
     def test (self):
         self.dbobject[0].fieldname = 'some new value'
  </code></pre>
  
  <p>then I am able to access a specific attribute like so:</p>
  
  <pre><code>objclass = Dbobject()
  fieldvalue = dbobject.dbobject[0].fieldname
  </code></pre>
  
  <p>but I want to be able to use the "test" method of the Dbobject class to try to change the specific value on an object's attribute value, but it isn't changing it. I am stumped by this as this is how I thought I am supposed to change an object's attribute value.</p>