Set image and title dynamically
This commit is contained in:
parent
a5dea2b399
commit
8e76a1c671
3 changed files with 26 additions and 9 deletions
|
|
@ -1,3 +1,13 @@
|
|||
# from django.db import models
|
||||
from cms.models.pluginmodel import CMSPlugin
|
||||
from django.db import models
|
||||
from filer.fields.image import FilerImageField
|
||||
|
||||
# Create your models here.
|
||||
|
||||
class UngelichPicture(CMSPlugin):
|
||||
image = FilerImageField(
|
||||
null=True,
|
||||
blank=True,
|
||||
related_name="image",
|
||||
on_delete=models.SET_NULL
|
||||
)
|
||||
title = models.CharField(max_length=200)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue