Skip to content

Commit

Permalink
fix: Change EventLogEntry.description from CharField to TextField to …
Browse files Browse the repository at this point in the history
…be able to store longer strings in this attribute.
  • Loading branch information
Nico-AP committed Jul 9, 2024
1 parent faf1479 commit d0d1c7d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions ddm/migrations/0048_alter_eventlogentry_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.13 on 2024-07-09 11:47

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('ddm', '0047_fileuploader_combined_consent'),
]

operations = [
migrations.AlterField(
model_name='eventlogentry',
name='description',
field=models.TextField(),
),
]
2 changes: 1 addition & 1 deletion ddm/models/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ class EventLogEntry(models.Model):
'DonationProject',
on_delete=models.CASCADE
)
description = models.CharField(max_length=100)
description = models.TextField()
message = models.TextField()

0 comments on commit d0d1c7d

Please sign in to comment.