Adds authentication field to failed api call

clubs
Laurent 1 year ago
parent 74a76fd844
commit bc347b1c5d
  1. 18
      tournaments/migrations/0070_failedapicall_authentication.py
  2. 1
      tournaments/models/failed_api_call.py

@ -0,0 +1,18 @@
# Generated by Django 4.2.11 on 2024-06-12 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tournaments', '0069_alter_playerregistration_first_name_and_more'),
]
operations = [
migrations.AddField(
model_name='failedapicall',
name='authentication',
field=models.TextField(blank=True, null=True),
),
]

@ -10,6 +10,7 @@ class FailedApiCall(models.Model):
call_id = models.UUIDField()
error = models.TextField()
api_call = models.JSONField()
authentication = models.TextField(blank=True, null=True)
def __str__(self):
datetime = self.date.strftime("%Y-%m-%d %H:%M")

Loading…
Cancel
Save