kopia lustrzana https://github.com/rtts/django-simplecms
19 wiersze
395 B
Python
19 wiersze
395 B
Python
![]() |
from cms.models import BaseSection
|
||
|
|
||
|
class Section(BaseSection):
|
||
|
'''Add custom fields here. Already existing fields: title, color,
|
||
|
content, image, video, button_text, button_link
|
||
|
|
||
|
'''
|
||
|
|
||
|
class TextSection(Section):
|
||
|
fields = ['title', 'content']
|
||
|
class Meta:
|
||
|
proxy = True
|
||
|
|
||
|
class ImageSection(Section):
|
||
|
fields = ['title', 'image']
|
||
|
class Meta:
|
||
|
proxy = True
|
||
|
|