Maybe change this:
Province.objects.values_list("id", "province_name")
to this:
Province.objects.values_list("id")
Although that doesn't explain the [] around 1. Are there multiple ids per
province_name?
On Fri, 27 Sept 2024 at 22:05, Cương Vũ Thế
wrote:
> Im django noob here so I would like t
Im django noob here so I would like to get your support. Thank you so much
in advanced.
*1. My model.py:*
class Province(models.Model): province_name = models.CharField() class
Employee(models.Model): first_name = models.CharField() province = models.
ForeignKey(Province, on_delete=models.CAS
2 matches
Mail list logo