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
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
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):
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
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
5 matches
Mail list logo