Commits

Ilya Pekelny committed 89a0ba7

limited TextfField.

Comments (0)

Files changed (4)

shivablog/shivaapp/admin.pyc

Binary file modified.

shivablog/shivaapp/models.py

 from django.db import models
 from django.conf import settings
+from django.core.validators import MaxLengthValidator
 
 from shivaapp.helpers.helpers import ImageResizing
 from shivaapp.managers import RandomManager
     """Dictums. Used in frontpage slideshow."""
     
     title = models.CharField(max_length=50)
-    text = models.TextField(max_length=300)
+    text = models.TextField(validators=[MaxLengthValidator(300), ])
     ordering = models.IntegerField()
     
     def __unicode__(self):

shivablog/shivaapp/models.pyc

Binary file modified.

shivablog/static/css/style.css

 }
 
 #slideshow div, #dictum-shift div {
+    padding: 10px;
+    visibility:hidden;
     position: absolute;
     z-index: 8;
     width: 300px;
 }
 
 #slideshow div.active, #dictum-shift div.active{
+    visibility:visible;
     z-index: 10;
     background-image: url(/site_media/static/img/E8F0FF090916_187.png);
-    width: 300px;
-    height: 300px;
 }
 
 #slideshow div.last-active, #dictum-shift div.last-active{
 #dictum-shift div{
     width: 300px;
     height: 300px;
-    font-size: 32px;
+    font-size: 22px;
     text-align: center;    
 }