models.py 334 B

1234567891011
  1. from django.db import models
  2. from events.models import AbstractEvent
  3. class TransactionEvent(AbstractEvent):
  4. project = models.ForeignKey("projects.Project", on_delete=models.CASCADE)
  5. transaction = models.CharField(max_length=1024)
  6. start_timestamp = models.DateTimeField()
  7. class Meta:
  8. ordering = ["-created"]