<reponame>firebaker/DirtOnScience-header-extras<filename>DirtOnScience_header_extras/models.py
from django.db import models

# page extension imports
from cms.extensions import PageExtension
from cms.extensions.extension_pool import extension_pool

# django filer imports
from filer.fields.image import FilerImageField

class HeaderOptionsExtension(PageExtension):
    header_subtitle = models.CharField(max_length=32, blank=True)
    header_image = FilerImageField(blank=True)
    header_image_source = models.CharField(max_length=32, blank=True)
    header_image_source_url = models.URLField(blank=True)
    header_image_license = models.CharField(max_length=32, blank=True)
    header_image_license_url = models.URLField(blank=True)

extension_pool.register(HeaderOptionsExtension)

from django.db import models

# page extension imports
from cms.extensions import PageExtension
from cms.extensions.extension_pool import extension_pool

# django filer imports
from filer.fields.image import FilerImageField

class HeaderOptionsExtension(PageExtension):
    header_subtitle = models.CharField(max_length=32, blank=True)
    header_image = FilerImageField(blank=True)
    header_image_source = models.CharField(max_length=32, blank=True)
    header_image_source_url = models.URLField(blank=True)
    header_image_license = models.CharField(max_length=32, blank=True)
    header_image_license_url = models.URLField(blank=True)

extension_pool.register(HeaderOptionsExtension)
# page extension imports # django filer imports