dynamicweb/ungleich/models.py
rscnt 76bfb3c47b 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>
2015-05-23 00:33:35 -06:00

12 lines
295 B
Python

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)