Dapatkan nilai 1 bidang dalam model 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