from cms.models import CMSPlugin
from django.db import models
from django.utils.translation import ugettext_lazy as _


class Plaintext(CMSPlugin):
    body = models.TextField(_('Plaintext'))

    def __unicode__(self):
        return self.body

from cms.models import CMSPlugin
from django.db import models
from django.utils.translation import ugettext_lazy as _


class Plaintext(CMSPlugin):
    body = models.TextField(_('Plaintext'))

    def __unicode__(self):
        return self.body

    def __str__(self):
        return self.body

Add `__str__` method to support Python 3
Add `__str__` method to support Python 3

  from cms.models import CMSPlugin
  from django.db import models
  from django.utils.translation import ugettext_lazy as _
  
  
  class Plaintext(CMSPlugin):
      body = models.TextField(_('Plaintext'))
  
      def __unicode__(self):
          return self.body
  
+     def __str__(self):
+         return self.body
+ 
Add `__str__` method to support Python 3
## Code Before:
from cms.models import CMSPlugin
from django.db import models
from django.utils.translation import ugettext_lazy as _


class Plaintext(CMSPlugin):
    body = models.TextField(_('Plaintext'))

    def __unicode__(self):
        return self.body

## Instruction:
Add `__str__` method to support Python 3
## Code After:
from cms.models import CMSPlugin
from django.db import models
from django.utils.translation import ugettext_lazy as _


class Plaintext(CMSPlugin):
    body = models.TextField(_('Plaintext'))

    def __unicode__(self):
        return self.body

    def __str__(self):
        return self.body
