Из полей модели в список fields для вьюхи
class Clients(models.Model):
id = models.AutoField(verbose_name='ID', primary_key=True)
...........................................................
add_phone12 = models.CharField(max_length=20, blank=True, null=True)
add_phone13 = models.CharField(max_length=20, blank=True, null=True)
add_phone22 = models.CharField(max_length=20, blank=True, null=True)
add_phone23 = models.CharField(max_length=20, blank=True, null=True)
'id',
....................
'add_phone12',
'add_phone13',
'add_phone22',
'add_phone23',
:%s/\s*\(\w*\)\s=.*\n/'\1',\r/g
Updated 13 June 2016, 20:23 by zavx0z.