from __future__ import unicode_literals
from django.db import models
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from mezzanine.conf import settings
from mezzanine.core.fields import FileField, RichTextField
from mezzanine.core.models import Displayable, Ownable, RichText, Slugged
from mezzanine.generic.fields import CommentsField, RatingField
from mezzanine.utils.models import AdminThumbMixin, upload_to
from mezzanine.forms.models import Form
class AboutPage(Form):
'''
All-in-one about page
'''
site_description= RichTextField(_("About"), help_text=_("A short description of this website."))
class Meta:
verbose_name=_("About page")
verbose_name_plural=_("About pages")
You are trying to add a non-nullable field 'form_ptr' to aboutpage without a default; we can't do that (the database needs something to populate existing rows).Please select a fix: 1) Provide a one-off default now (will be set on all existing rows with a null value for this column) 2) Quit, and let me add a default in models.pySelect an option: 2