xxxxxxxxxx
#models.py
TRANSFER_STATUS = (
("Failed", "Failed"),
("completed", "Completed"),
("pending", "Pending"),
("processing", "processing"),
)
class Transaction(models.Model):
.
status = models.CharField(choices=TRANSFER_STATUS, max_length=100, default="none")
# views.py
transfer_transaction.status = 'completed' ## The `status` should be the name of the field