I\'m trying to group records by the character of name field of each record and limit the items in each group, here is what I have came up with:
name
desi
For Django REST you can refer,
Get Response Group by Alphabet
{ "A": [ "Adelanto", "Azusa", "Alameda", "Albany", "Alhambra", "Anaheim" ], "B": [ "Belmont", "Berkeley", "Beverly Hills", "Big Sur", "Burbank" ], ...... }