models: UngleichPage, -image_header +image
The filed image_header was removed, and a new filed image was added, the reason for this change is that image being a FilerImageFiled can make use of previously uploaded images while with image_header only uploads where available. Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
02b52b1cf1
commit
d9883cc503
4 changed files with 45 additions and 2 deletions
|
|
@ -2,12 +2,15 @@ from django.db import models
|
|||
|
||||
from cms.extensions import PageExtension
|
||||
from cms.extensions.extension_pool import extension_pool
|
||||
from filer.fields.image import FilerImageField
|
||||
|
||||
|
||||
# Create your models here.
|
||||
|
||||
class UngleichPage(PageExtension):
|
||||
image_header = models.ImageField(upload_to='image_header')
|
||||
#image_header = models.ImageField(upload_to='image_header')
|
||||
image = FilerImageField(null=True, blank=True,
|
||||
related_name="ungleinch_page_image")
|
||||
|
||||
class Meta:
|
||||
app_label = 'ungleich'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue