mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -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',),
|
||||
},
|
||||
),
|
||||
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:
|
||||
ordering = ('pk',)
|
||||
constraints = (
|
||||
models.UniqueConstraint(
|
||||
fields=('branch', 'object_type', 'object_id'),
|
||||
name='extras_change_unique_branch_object'
|
||||
),
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.get_action_display()} {self.model}"
|
||||
|
Loading…
Reference in New Issue
Block a user