from django.db import models

from .fields import ListTextField


class TwoModularColumnsMixin(models.Model):
    sidebar_left = ListTextField()
    sidebar_right = ListTextField()

    class Meta:
        abstract = True

from django.db import models

from .fields import ListTextField


class TwoModularColumnsMixin(models.Model):
    sidebar_left = ListTextField(
        blank=True,
        null=True,
    )
    sidebar_right = ListTextField(
        lank=True,
        null=True,
    )

    class Meta:
        abstract = True

Add null and blank to sidebars
Add null and blank to sidebars

  from django.db import models
  
  from .fields import ListTextField
  
  
  class TwoModularColumnsMixin(models.Model):
-     sidebar_left = ListTextField()
+     sidebar_left = ListTextField(
+         blank=True,
+         null=True,
+     )
-     sidebar_right = ListTextField()
+     sidebar_right = ListTextField(
+         lank=True,
+         null=True,
+     )
  
      class Meta:
          abstract = True
  
Add null and blank to sidebars
## Code Before:
from django.db import models

from .fields import ListTextField


class TwoModularColumnsMixin(models.Model):
    sidebar_left = ListTextField()
    sidebar_right = ListTextField()

    class Meta:
        abstract = True

## Instruction:
Add null and blank to sidebars
## Code After:
from django.db import models

from .fields import ListTextField


class TwoModularColumnsMixin(models.Model):
    sidebar_left = ListTextField(
        blank=True,
        null=True,
    )
    sidebar_right = ListTextField(
        lank=True,
        null=True,
    )

    class Meta:
        abstract = True
