Skip to content

Commit

Permalink
expanded audit log action to 300 chars rather than 100 due to reachin…
Browse files Browse the repository at this point in the history
…g limits for logs
  • Loading branch information
TreyWW committed Nov 15, 2024
1 parent 0b96d50 commit 497b205
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ class Notification(models.Model):


class AuditLog(OwnerBase):
action = models.CharField(max_length=100)
action = models.CharField(max_length=300)
date = models.DateTimeField(auto_now_add=True)

class Meta:
Expand Down
18 changes: 18 additions & 0 deletions backend/migrations/0069_alter_auditlog_action.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.1 on 2024-11-15 09:10

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("backend", "0068_invoice_created_at_invoice_status_updated_at_and_more"),
]

operations = [
migrations.AlterField(
model_name="auditlog",
name="action",
field=models.CharField(max_length=300),
),
]

0 comments on commit 497b205

Please sign in to comment.