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.
15 lines
515 B
15 lines
515 B
from django.db import models
|
|
from . import CustomUser
|
|
import uuid
|
|
|
|
class FailedApiCall(models.Model):
|
|
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True)
|
|
date = models.DateTimeField()
|
|
user = models.ForeignKey(CustomUser, blank=True, null=True, on_delete=models.SET_NULL)
|
|
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}"
|
|
|