Skip to content

Commit

Permalink
remove obsolete field
Browse files Browse the repository at this point in the history
  • Loading branch information
Svyat committed Jun 11, 2024
1 parent e2361f1 commit de89002
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
17 changes: 17 additions & 0 deletions triggers/migrations/0006_remove_action_trigger_old.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 3.2.20 on 2024-06-11 08:29

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('triggers', '0005_alter_action_triggers'),
]

operations = [
migrations.RemoveField(
model_name='action',
name='trigger_old',
),
]
9 changes: 0 additions & 9 deletions triggers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@ class Action(PolymorphicModel):
verbose_name=_('trigger'),
null=True
)
trigger_old = models.ForeignKey(
to=Trigger,
on_delete=models.CASCADE,
related_name='actions_old',
related_query_name='action_old',
verbose_name=_('trigger obsolete'),
null=True,
blank=True,
)

class Meta:
verbose_name = _('action')
Expand Down

0 comments on commit de89002

Please sign in to comment.