Django - How do I get a str from this charField? : I have been trying to follow documentation but I keep getting the error: 'issues has no attribute content" 
My goal is that i need a temp variable to hold data until I commit it to my actual database. 

So when reading the code, content is basically tmp, and logComments is when I actually want to commit it to the database. Im trying to develop history tracking of who edited what, and when. However, whenever I call instance.logComments = formIssues.__str__() I keep getting that error even though ive defined a to string method. Can someone point out where I am going wrong?


class issues(ModelForm):
    content = forms.CharField(widget=forms.Textarea,max_length=500, label='')

#forms.py
    def __str__(self):
        return str(self.content)

    class Meta:
        model = History
        fields = ['content']
        widgets = {'content': Textarea(attrs={'cols': 50, 'rows': 30})}
        labels = {'content': ""}


#views.py
 formIssues = issues(request.POST or None)

       #This is for saving the issues textbox
    if request.method == 'POST' and formIssues.is_valid() and 'Submit Issue' in request.POST:
        #History.logComments = formIssues
        instance = formIssues.save(commit=False)
        instance.logComments = formIssues.__str__()
        instance.projectID = 1337
        instance.userID = request.user
        instance.commentType = "Issue"
        instance.save()

#models.py
class History(models.Model):

    projectID = models.IntegerField()
    userID = models.CharField(max_length=10)
    logComments = models.TextField(max_length=500, default='')
    commentType = models.CharField(max_length=20, default ='')
    timeStamp = models.DateTimeField(auto_now_add=True, auto_now=False)


    

