I have a model Client and need to get registration addres in VALUES()
class Client(models.Model)
addresses = generic.GenericRelation(Addres, null=True, blank=True )
name =models.CharField(max_length=50)
tel =models.CharField(max_length=20)
...
def get_addres(self):
''' Returns registration addres
'''
I want to do some thig like this
list = Client.objects.all().values( 'name', 'tel', 'get_addres')
Please, tell me how can I solve this issue?