Skip to content

Instantly share code, notes, and snippets.

Created March 28, 2014 19:05
Show Gist options
  • Select an option

  • Save anonymous/9840574 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/9840574 to your computer and use it in GitHub Desktop.
Custom model mezzanine
#-*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from mezzanine.core.fields import FileField, RichTextField
from mezzanine.core.models import RichText, Orderable, Slugged
from mezzanine.pages.models import Page
from mezzanine.forms.models import Form
from mezzanine.utils.models import upload_to
from django.forms import TextInput, Textarea
class ContactPage(Page, Form):
"""
A page representing of the home page
"""
address = RichTextField(_('Infos'), null=True, blank=True)
class Meta:
verbose_name = _("Formulaire et infos")
verbose_name_plural = _("Formulaire et infos")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment