Created
March 28, 2014 19:05
-
-
Save anonymous/9840574 to your computer and use it in GitHub Desktop.
Custom model mezzanine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #-*- 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