Obtenez la valeur de 1 champ dans le modèle Django

#Model:
class YourModel(models.Model):
    name = models.CharField(max_length=30)
    
#Then to get name attribute
queryset = YourModel.objects.get(id=1)
field_name = queryset.name
MitchAloha