mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -06:00
Drop unique constraint from Change model
This commit is contained in:
parent
dde069c7e5
commit
d5e76a34b8
@ -44,8 +44,4 @@ class Migration(migrations.Migration):
|
|||||||
'ordering': ('pk',),
|
'ordering': ('pk',),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
migrations.AddConstraint(
|
|
||||||
model_name='change',
|
|
||||||
constraint=models.UniqueConstraint(fields=('branch', 'object_type', 'object_id'), name='extras_change_unique_branch_object'),
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
@ -77,12 +77,6 @@ class Change(ChangeLoggedModel):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ('pk',)
|
ordering = ('pk',)
|
||||||
constraints = (
|
|
||||||
models.UniqueConstraint(
|
|
||||||
fields=('branch', 'object_type', 'object_id'),
|
|
||||||
name='extras_change_unique_branch_object'
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.get_action_display()} {self.model}"
|
return f"{self.get_action_display()} {self.model}"
|
||||||
|
Loading…
Reference in New Issue
Block a user