diff options
Diffstat (limited to 'ishtar_common/models.py')
| -rw-r--r-- | ishtar_common/models.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 3b3f9d141..ca6ba36c9 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2843,10 +2843,11 @@ IshtarUser._meta.get_field('password').help_text = _(  class AuthorType(GeneralType): +    order = models.IntegerField(_(u"Order"), default=1)      class Meta:          verbose_name = _(u"Author type")          verbose_name_plural = _(u"Author types") -        ordering = ['label'] +        ordering = ['order', 'label']  post_save.connect(post_save_cache, sender=AuthorType)  post_delete.connect(post_save_cache, sender=AuthorType) @@ -2859,6 +2860,7 @@ class Author(models.Model):      class Meta:          verbose_name = _(u"Author")          verbose_name_plural = _(u"Authors") +        ordering = ('author_type__order', 'person__name')      def __unicode__(self):          return unicode(self.person) + settings.JOINT + \ | 
