Re: using return upper

2011-02-02 Thread makayabou
Hello, I found a solution for the simplified version of my problem. In models.py, I use: def __unicode__(self): oses_installed = u','.join(self.operatingsystemused.all().values_list('operatingsystem', flat=True)) return ("%s" % (oses_installed)) However, i

Re: using return upper

2011-02-01 Thread Rainy
On Feb 1, 6:12 pm, makayabou wrote: > Hello, > I try to simplify the problem. > > This model gives me a (None) result: > > class OperatingSystem (models.Model): >         operatingsystem = CharField (max_length=30, blank=True, null=True) >         def __unicode__(self): >                 return

Re: using return upper

2011-02-01 Thread makayabou
Hello, I try to simplify the problem. This model gives me a (None) result: class OperatingSystem (models.Model): operatingsystem = CharField (max_length=30, blank=True, null=True) def __unicode__(self): return "%s" % (self.operatingsystem) class Ordi(models.Model):

Re: using return upper

2011-02-01 Thread makayabou
Hello, With your stuff, it still shows me (None). You are right, Ordi means Ordinateur (computer) Florian On 1 fév, 13:40, Tom Evans wrote: > On Tue, Feb 1, 2011 at 10:32 AM, makayabou wrote: > > Hello, > > I'm trying to modify my admin.py from my app "ordis": > > > from ordis.models import Or

Re: using return upper

2011-02-01 Thread Tom Evans
On Tue, Feb 1, 2011 at 10:32 AM, makayabou wrote: > Hello, > I'm trying to modify my admin.py from my app "ordis": > > from ordis.models import Ordi, Maintenance, OperatingSystem > from django.contrib import admin > > #class MaintenanceAdmin(admin.ModelAdmin): >        #list_display = (???) here I