On Fri, Aug 31, Anderson Santos wrote: > > Here the code: > > > class Download(models.Model): > """ Disponibilização de arquivos para download """ > > descricao = > models.CharField(verbose_name='Descrição',maxlength=250) > data_do_arquivo = models.DateField() > caminho_do_arquivo = models.CharField(maxlength=400) > atualizar_versao_com_grupo = > models.BooleanField(verbose_name='Controlar a versão pelo sistema > principal') > versao = models.CharField(verbose_name='Versão do > Arquivo',blank=True,null=True,maxlength=20) > usuarios_permitidos = > models.ManyToManyField(User,blank=True,null=True,filter_interface=models.HORIZONTAL) > restringir_por_usuario = models.BooleanField(default=False) > ordem = models.IntegerField(blank=True,null=True,default=0) > > def __str__(self): > return self.descricao
Can you rename __str__(self) to __unicode__(self) and try again? And, BTW, what is the line with '# -*- encoding'? Michael -- noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg - Tel +49-911-9352-0 - Fax +49-911-9352-100 http://www.noris.de - The IT-Outsourcing Company Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk - Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---