Skip to content

Commit 62a8d2b

Browse files
committed
Fix: event trigger
1 parent 4b201d4 commit 62a8d2b

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Generated by Django 4.2.27 on 2026-01-28 05:42
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('tasks', '0016_tasklog_is_attachment_upload_failed'),
10+
]
11+
12+
operations = [
13+
migrations.CreateModel(
14+
name='TestingPublication',
15+
fields=[
16+
('id', models.AutoField(primary_key=True, serialize=False)),
17+
('name', models.CharField(help_text='Name', max_length=255)),
18+
('created_at', models.DateTimeField(auto_now_add=True, help_text='Created at datetime')),
19+
('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at datetime')),
20+
],
21+
options={
22+
'db_table': 'testing_publication',
23+
},
24+
),
25+
]

apps/tasks/models.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,16 @@ def get_or_create_error_with_expense_group(expense_group: ExpenseGroup, expense_
143143
error.mapping_error_expense_group_ids = list(set(error.mapping_error_expense_group_ids + [expense_group.id]))
144144
error.save(update_fields=['mapping_error_expense_group_ids'])
145145
return error, created
146+
147+
148+
class TestingPublication(models.Model):
149+
"""
150+
Table to store testing
151+
"""
152+
id = models.AutoField(primary_key=True)
153+
name = models.CharField(max_length=255, help_text='Name')
154+
created_at = models.DateTimeField(auto_now_add=True, help_text='Created at datetime')
155+
updated_at = models.DateTimeField(auto_now=True, help_text='Updated at datetime')
156+
157+
class Meta:
158+
db_table = 'testing_publication'

0 commit comments

Comments
 (0)