<div dir="ltr"><div><div><div><div><div><div>Hi All <br><br></div>how can I iterate through the columns for an object in model<br><br></div>example <br></div><div>for an given object of a model I want to print the verbose name and its value when the help_text in the model is not NULL.<br><br>class Client(models.Model):<br>    cli_clientid = models.CharField(primary_key=True, verbose_name = "Client Id", help_text= "This is help") <br>    cli_client_type = models.CharField(max_length=4, verbose_name = "Client Type", help_text= "")<br><br></div><div>Assume Test_Client_Id is the value of cli_clientid os respective object<br></div><div><br></div>for each column in Obj<br></div>     if column.help_text != "" :<br></div>              print "The column ", column.verbose_name, " has value ", column.value<br><br></div><div>expected output <br><br></div><div>The column Client Id has value Test_Client_Id<br><br></div><div>Thanks<br></div><div>Sunil<br>9008524726<br></div><div><br></div></div>