id = pw.AutoField()
type = pw.CharField(max_length=255)
url = pw.TextField()
- alarm = pw.ForeignKeyField(backref='actions', column_name='alarm_id', field='id',
- model=migrator.orm['vnfalarm'], on_delete='CASCADE')
+ alarm = pw.ForeignKeyField(
+ backref="actions",
+ column_name="alarm_id",
+ field="id",
+ model=migrator.orm["vnfalarm"],
+ on_delete="CASCADE",
+ )
class Meta:
table_name = "alarmaction"
def rollback(migrator, database, fake=False, **kwargs):
"""Write your rollback migrations here."""
- migrator.remove_model('vnfalarm')
-
- migrator.remove_model('alarmaction')
+ migrator.remove_model("vnfalarm")
+ migrator.remove_model("alarmaction")