mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-17 17:56:29 +00:00
Correct error with activate
This commit is contained in:
parent
72845c9a68
commit
3fb8e8f254
@ -71,8 +71,8 @@ class ConfigRevision(models.Model):
|
||||
cache.set('config_version', self.pk, None)
|
||||
|
||||
# Set all instances of ConfigRevision to false and set this instance to true
|
||||
ConfigRevision.objects.all().update(active=True)
|
||||
ConfigRevision.objects.get(pk=self.pk).update(active=True)
|
||||
ConfigRevision.objects.all().update(active=False)
|
||||
ConfigRevision.objects.filter(pk=self.pk).update(active=True)
|
||||
|
||||
activate.alters_data = True
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user