mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
Fix detecting if peers changed in serializer
Add a check_peers_changed() utility method to determine if peers in attrs matches the current instance peers. Other changes: - Set ip_address default to "", and do not allow null.
This commit is contained in:
@@ -105,8 +105,7 @@ class Instance(HasPolicyEditsMixin, BaseModel):
|
||||
hostname = models.CharField(max_length=250, unique=True)
|
||||
ip_address = models.CharField(
|
||||
blank=True,
|
||||
null=True,
|
||||
default=None,
|
||||
default="",
|
||||
max_length=50,
|
||||
)
|
||||
# Auto-fields, implementation is different from BaseModel
|
||||
|
||||
Reference in New Issue
Block a user