Revision d35930c2 cloudcms/content.py
b/cloudcms/content.py | ||
---|---|---|
175 | 175 |
def render(self, **kwargs): |
176 | 176 |
return render_to_string(['content/login_form.html'], {'content': self}) |
177 | 177 |
|
178 |
|
|
179 |
class IntroButton(models.Model): |
|
180 |
|
|
181 |
class Meta: |
|
182 |
abstract = True |
|
183 |
verbose_name = _('intro images') |
|
184 |
verbose_name_plural = _('intro images') |
|
185 |
|
|
186 |
image_1 = MediaFileForeignKey(MediaFile, blank=True, null=True, |
|
187 |
related_name="as_image1") |
|
188 |
image_2 = MediaFileForeignKey(MediaFile, blank=True, null=True, |
|
189 |
related_name="as_image2") |
|
190 |
image_3 = MediaFileForeignKey(MediaFile, blank=True, null=True, |
|
191 |
related_name="as_image3") |
|
192 |
link = models.CharField(max_length=255, blank=False, default="/welcome") |
|
193 |
link_title = models.CharField(max_length=255, blank=False, default="~okeanos") |
|
194 |
|
|
195 |
def render(self, **kwargs): |
|
196 |
return render_to_string(['content/intro_images.html'], {'content': self}) |
|
197 |
|
|
198 |
|
Also available in: Unified diff