<reponame>dhamaniasad/django-glitter<filename>glitter/blocks/redactor/models.py<gh_stars>1-10
from django.db import models

from glitter.models import BaseBlock


class BaseRedactorBlock(BaseBlock):
    block_class = models.CharField('Class', max_length=50)
    content = models.TextField()

    class Meta:
        abstract = True


class Redactor(BaseRedactorBlock):
    class Meta:
        verbose_name = 'text'

from django.db import models

from glitter.models import BaseBlock


class BaseRedactorBlock(BaseBlock):
    block_class = models.CharField('Class', max_length=50)
    content = models.TextField()

    class Meta:
        abstract = True


class Redactor(BaseRedactorBlock):
    class Meta:
        verbose_name = 'text'