def Ark():
li = Forti.objects.all(), Autre.objects.all()
list1=list(li)
return list1
class License(models.Model):
assigne_a = models.CharField(default =Ark, max_length=25,
verbose_name="assigné à l'equipement")
categorie = models.TextField( max_length=15, choices=Cat_choice,
verbose_name='Categorie generale', blank=True)
cate = models.TextField( max_length=15, choices=Cat2_choice,
verbose_name='Categorie Interne', blank=True)
class Meta:
verbose_name = 'License'
我希望它在列表中的字段Assigne_a中显示相关对象,但它像这样显示它:
[<QuerySet [<Forti: DR 60 E>, <Forti: DR 60 D>]>, <QuerySet []>]