mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
Modified DummyModel to make it trigger event rules
This commit is contained in:
parent
8fd508560d
commit
e512027a91
@ -15,6 +15,8 @@ class Migration(migrations.Migration):
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
|
||||
('name', models.CharField(max_length=20)),
|
||||
('number', models.IntegerField(default=100)),
|
||||
('created', models.DateField(auto_now_add=True, null=True)),
|
||||
('last_updated', models.DateTimeField(auto_now=True, null=True)),
|
||||
],
|
||||
options={
|
||||
'ordering': ['name'],
|
||||
|
@ -1,7 +1,8 @@
|
||||
from django.db import models
|
||||
|
||||
from netbox.models import EventRulesMixin, ChangeLoggingMixin
|
||||
|
||||
class DummyModel(models.Model):
|
||||
class DummyModel(EventRulesMixin, ChangeLoggingMixin, models.Model):
|
||||
name = models.CharField(
|
||||
max_length=20
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user