but Country class doesn't have such field 'tour' ! ;/
Alex Koshelev пишет:
> class Country(models.Model):
> #...
> class Meta:
> ordering = ('name','tour',)
>
> On 23 сент, 03:47, Oleg Korsak <[EMAIL PROTECTED]>
> wrote:
>> Hello. I have such models:
>>
>> class C
class Country(models.Model):
#...
class Meta:
ordering = ('name','tour',)
On 23 сент, 03:47, Oleg Korsak <[EMAIL PROTECTED]>
wrote:
> Hello. I have such models:
>
> class Country(models.Model):
> name = models.CharField(_('name'), maxlength=32)
>
>
Hello. I have such models:
class Country(models.Model):
name = models.CharField(_('name'), maxlength=32)
def __unicode__(self):
return self.name
class Meta:
verbose_name = _('country')
verbose_name_plural = _('countr
3 matches
Mail list logo