@@ -148,7 +148,7 @@ class Meta:
148148 def __init__ (self , * args , ** kwargs ):
149149 super ().__init__ (* args , ** kwargs )
150150 # for internal usage
151- self ._should_send_vpn_modified_after_save = False
151+ self ._send_vpn_modified_after_save = False
152152
153153 def clean (self , * args , ** kwargs ):
154154 super ().clean (* args , ** kwargs )
@@ -280,10 +280,10 @@ def save(self, *args, **kwargs):
280280 raise e
281281 if create_dh :
282282 transaction .on_commit (lambda : create_vpn_dh .delay (self .id ))
283- if not created and self ._should_send_vpn_modified_after_save :
283+ if not created and self ._send_vpn_modified_after_save :
284284 self .invalidate_checksum_cache ()
285285 self ._send_vpn_modified_signal ()
286- self ._should_send_vpn_modified_after_save = False
286+ self ._send_vpn_modified_after_save = False
287287 # For ZeroTier VPN server, if the
288288 # ZeroTier network is created successfully,
289289 # this method triggers a background task to
@@ -310,7 +310,7 @@ def _check_changes(self):
310310 current = self ._meta .model .objects .only (* attrs ).get (pk = self .pk )
311311 for attr in attrs :
312312 if getattr (self , attr ) != getattr (current , attr ):
313- self ._should_send_vpn_modified_after_save = True
313+ self ._send_vpn_modified_after_save = True
314314 break
315315
316316 def _send_vpn_modified_signal (self ):
0 commit comments