from django.db import models
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _

from django import forms

class RawContent(models.Model):
    text = models.TextField(_('content'), blank=True)

    class Meta:
        abstract = True
        verbose_name = _('raw content')
        verbose_name_plural = _('raw contents')

    @property
    def media(self):
        return forms.Media(
            css={'all': ('whatever.css',)},
            js=('something.js',),
            )

    def render(self, **kwargs):
        return mark_safe(self.text)


from django.db import models
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _

from django import forms

class RawContent(models.Model):
    text = models.TextField(_('content'), blank=True)

    class Meta:
        abstract = True
        verbose_name = _('raw content')
        verbose_name_plural = _('raw contents')

    def render(self, **kwargs):
        return mark_safe(self.text)


Remove test content type media from RawContent
Remove test content type media from RawContent

  from django.db import models
  from django.utils.safestring import mark_safe
  from django.utils.translation import ugettext_lazy as _
  
  from django import forms
  
  class RawContent(models.Model):
      text = models.TextField(_('content'), blank=True)
  
      class Meta:
          abstract = True
          verbose_name = _('raw content')
          verbose_name_plural = _('raw contents')
  
-     @property
-     def media(self):
-         return forms.Media(
-             css={'all': ('whatever.css',)},
-             js=('something.js',),
-             )
- 
      def render(self, **kwargs):
          return mark_safe(self.text)
  
  
Remove test content type media from RawContent
## Code Before:
from django.db import models
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _

from django import forms

class RawContent(models.Model):
    text = models.TextField(_('content'), blank=True)

    class Meta:
        abstract = True
        verbose_name = _('raw content')
        verbose_name_plural = _('raw contents')

    @property
    def media(self):
        return forms.Media(
            css={'all': ('whatever.css',)},
            js=('something.js',),
            )

    def render(self, **kwargs):
        return mark_safe(self.text)


## Instruction:
Remove test content type media from RawContent
## Code After:
from django.db import models
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _

from django import forms

class RawContent(models.Model):
    text = models.TextField(_('content'), blank=True)

    class Meta:
        abstract = True
        verbose_name = _('raw content')
        verbose_name_plural = _('raw contents')

    def render(self, **kwargs):
        return mark_safe(self.text)

