KristianOellegaard/django-hvad — Issue #12: Ordering on translated fields
Author: Natim
Created: 2012-01-13 13:34:40+00:00
State: open

I have very simple models that I need to translate :

class Country(TranslatableModel):
translations = TranslatedFields(
name = models.CharField(_(u'name'), max_length=100)
)

def __unicode__(self):
return u'%s' % self.name

class Meta:
ordering = ('name',)
verbose_name = _(u"country")
verbose_name_plural = _(u"countries")

The ordering fail because `"ordering" refers to "name", a field that doesn't exist.`