mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Check for extraneous custom field data on clean()
This commit is contained in:
@@ -74,7 +74,8 @@ class UserKey(models.Model):
|
||||
def __str__(self):
|
||||
return self.user.username
|
||||
|
||||
def clean(self, *args, **kwargs):
|
||||
def clean(self):
|
||||
super().clean()
|
||||
|
||||
if self.public_key:
|
||||
|
||||
@@ -105,8 +106,6 @@ class UserKey(models.Model):
|
||||
)
|
||||
})
|
||||
|
||||
super().clean()
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
|
||||
# Check whether public_key has been modified. If so, nullify the initial master_key_cipher.
|
||||
|
||||
Reference in New Issue
Block a user