Browse files

minor fixes

  • Loading branch information...
1 parent b7df127 commit f96f2a2dc4a505ede2e58159d1164467f4980f42 James Cleveland committed Jun 22, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 suave/models.py
View
6 suave/models.py
@@ -4,6 +4,7 @@
from django.core.urlresolvers import reverse
from django.db.models.signals import pre_save, post_save
from django.dispatch import receiver
+from django.utils.translation import ugettext as _
from mptt.models import MPTTModel, TreeForeignKey
@@ -16,7 +17,8 @@
class Ordered(models.Model):
- order = models.IntegerField(null=True, blank=True, db_index=True)
+ order = models.IntegerField(null=True, blank=True, db_index=True,
+ verbose_name=_('display order'))
added = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)
@@ -278,7 +280,7 @@ class Redirect(Ordered):
class Image(Ordered):
image = ImageField(upload_to='uploads')
- alt = models.TextField(null=True, blank=True)
+ alt = models.CharField(max_length=511, null=True, blank=True)
class Meta:
abstract = True

0 comments on commit f96f2a2

Please sign in to comment.