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.
13 lines
399 B
13 lines
399 B
from django.db import models
|
|
import uuid
|
|
|
|
class FailedApiCall(models.Model):
|
|
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True)
|
|
date = models.DateTimeField()
|
|
type = models.CharField(max_length=50)
|
|
call_id = models.UUIDField()
|
|
api_call = models.JSONField()
|
|
error = models.TextField()
|
|
|
|
def __str__(self):
|
|
return f"{self.type} - {self.date}"
|
|
|