Is there any way how can I duplicate value to another column,the value should be the same whenever I upload data to column 1 for example. I have 3000 in column 1, the value of column 2 should automatically write 3000, it is possible to trick in models? or When Inserting query instead using default? Thanks in advance!.
Current output
Column 1 Column 2
5000 5000
3650 5000
2000 5000
Expected output
Column 1 Column 2
5000 5000
3650 3650
2000 2000
models.py
class Person(models.Model):
amount = models.CharField(max_length=50,blank=True, null=True)
amount_paid = models.CharField(max_length=60,default='5000', null=True)
amount _paidshould the same value inamount