You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

abstract_models.py 677B

123456789101112131415161718
  1. from decimal import Decimal
  2. from django.db import models
  3. from django.utils.translation import ugettext as _
  4. class AbstractTransaction(models.Model):
  5. order_number = models.CharField(max_length=128)
  6. type = models.CharField(max_length=128)
  7. transaction_ref = models.CharField(max_length=128)
  8. merchant_ref = models.CharField(max_length=128)
  9. amount = models.DecimalField()
  10. auth_code = models.CharField(max_length=128, blank=True, required=True)
  11. response_code = models.PositiveIntergerField()
  12. response_message = models.CharField(max_length=255)
  13. request_xml = models.TextField()
  14. response_xml = models.TextField()
  15. date = models.DateTime()