mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-12 01:03:09 +00:00
Optimisation of domains update
This commit is contained in:
parent
987ba3a33b
commit
ef33bc67c1
1 changed files with 1 additions and 2 deletions
|
@ -2482,8 +2482,7 @@ def machinetype_post_save(**kwargs):
|
|||
parent IP type).
|
||||
"""
|
||||
machinetype = kwargs["instance"]
|
||||
for interface in machinetype.all_interfaces():
|
||||
interface.update_type()
|
||||
Domain.objects.filter(interface_parent__machine_type=machinetype).update(extension=machinetype.ip_type.extension)
|
||||
|
||||
|
||||
@receiver(post_save, sender=Domain)
|
||||
|
|
Loading…
Reference in a new issue