Re: Annotate a List of Values

2016-11-18 Thread Nate Granatir
= models.CharField(max_length=100) serial_numbers = models.ManyToManyField(SerialNumber) Then you can get a list of all serials for an item with: item.serial_numbers.all() On Thursday, November 17, 2016 at 1:26:34 PM UTC-6, Matthew Pava wrote: > > I am trying to annotate a list of values on a qu

Annotate a List of Values

2016-11-17 Thread Matthew Pava
I am trying to annotate a list of values on a queryset. Basically, I have a model of Items that are associated many to many to Serial Numbers, and I want for each distinct Item the list of all Serial Numbers for that Item. -- You received this message because you are subscribed to the Google