Why won't serialize capture annotate fields?
问题 I had no idea adding data to a queryset would be so hard. It's like, if it didn't come directly from the db then it might as well not exist. Even when I annotate, the new fields are 2nd class citizens and aren't always available. Why won't serialize capture my annotate fields? Model class Parc(models.Model): # Regular Django fields corresponding to the attributes in the # world borders shapefile. prop_id = models.IntegerField(unique=True) # OBJECTID: Integer (10.0) shp_id = models