Added ungleich app to extend Page models.

Ungleich app has a model called UngleichPage,
this model has an attribute called image_header
which will be used to set the background image for
the page header.

Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
rascencio 2015-05-23 00:33:35 -06:00
commit 76bfb3c47b
10 changed files with 152 additions and 11 deletions

12
ungleich/models.py Normal file
View file

@ -0,0 +1,12 @@
from django.db import models
from cms.extensions import PageExtension
from cms.extensions.extension_pool import extension_pool
# Create your models here.
class UngleichPage(PageExtension):
image_header = models.ImageField(upload_to='image_header')
extension_pool.register(UngleichPage)