Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cleveland committed Jun 22, 2012
1 parent b7df127 commit f96f2a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions suave/models.py
Expand Up @@ -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

Expand All @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f96f2a2

Please sign in to comment.