Revision 630dc5b7 cloudcms/content.py

b/cloudcms/content.py
217 217

  
218 218
    def render(self, **kwargs):
219 219
        return render_to_string(['content/intro_block.html'], {'content': self})
220

  
221

  
222
class BlockColor(models.Model):
223
    title = models.CharField(_('title'), max_length=200, blank=False)
224
    content = models.TextField()
225
    color = models.CharField(max_length=200, blank=True, null=True)
226
    image = MediaFileForeignKey(MediaFile, blank=True, null=True)
227

  
228
    class Meta:
229
        abstract = True
230

  
231
    def render(self, **kwargs):
232
        return render_to_string(['content/block_with_color.html'], {'content': self})
220 233
    
221 234

  
222 235
class ClientDownload(models.Model):

Also available in: Unified diff