From bc347b1c5d4663bf4c56f085938d3b4ff465e0d8 Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 12 Jun 2024 17:52:17 +0200 Subject: [PATCH] Adds authentication field to failed api call --- .../0070_failedapicall_authentication.py | 18 ++++++++++++++++++ tournaments/models/failed_api_call.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 tournaments/migrations/0070_failedapicall_authentication.py diff --git a/tournaments/migrations/0070_failedapicall_authentication.py b/tournaments/migrations/0070_failedapicall_authentication.py new file mode 100644 index 0000000..b394e17 --- /dev/null +++ b/tournaments/migrations/0070_failedapicall_authentication.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), + ), + ] diff --git a/tournaments/models/failed_api_call.py b/tournaments/models/failed_api_call.py index 01fa7d1..fd53e7a 100644 --- a/tournaments/models/failed_api_call.py +++ b/tournaments/models/failed_api_call.py @@ -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")