Revision f6e90a2b cloudcms/cms.py
b/cloudcms/cms.py | ||
---|---|---|
54 | 54 |
from feincms.content.video.models import VideoContent |
55 | 55 |
from feincms.content.richtext.models import RichTextContent |
56 | 56 |
|
57 |
from cloudcmsblog.models import Entry |
|
57 |
from cloudcmsblog.models import Entry, LatestEntries
|
|
58 | 58 |
from cloudcms.content import * |
59 | 59 |
|
60 | 60 |
Page.register_extensions( |
... | ... | |
76 | 76 |
'regions': ( |
77 | 77 |
('main', 'Main region'), |
78 | 78 |
('sidebar', 'Sidebar', 'inherited'), |
79 |
('bottom', 'Bottom section', 'inherited'), |
|
79 | 80 |
), |
80 | 81 |
}, |
81 | 82 |
{ |
... | ... | |
94 | 95 |
'regions': ( |
95 | 96 |
('main', 'Main region'), |
96 | 97 |
('sidebar', 'Sidebar', 'inherited'), |
98 |
('bottom', 'Bottom section', 'inherited'), |
|
97 | 99 |
), |
98 | 100 |
}, |
99 | 101 |
{ |
... | ... | |
125 | 127 |
Page.create_content_type(TwitterFeed) |
126 | 128 |
Page.create_content_type(VideoContent) |
127 | 129 |
Page.create_content_type(VideoSection) |
130 |
Page.create_content_type(LatestEntries) |
|
128 | 131 |
Page.create_content_type(ImageContent, POSITION_CHOICES=( |
129 | 132 |
('default', 'Default position'), |
130 | 133 |
)) |
... | ... | |
151 | 154 |
Entry.create_content_type(VideoContent) |
152 | 155 |
Entry.create_content_type(TwitterFeed) |
153 | 156 |
Entry.create_content_type(RawContent) |
157 |
Entry.create_content_type(LatestEntries) |
|
154 | 158 |
Entry.create_content_type(SectionContent, TYPE_CHOICES=(('block', 'Block'),)) |
155 | 159 |
|
Also available in: Unified diff