I have a query
messages = Message.objects.all()
I want to create a Create a comma separated string of all numbers from message.number
This is what I have tried:
number = ""
for obj in messages:
number = number + "," + obj.number
How can I do this? PS this string can be VERY long over 400,000 numbers!