

def check_glue_status(self):
    'If this record is a "glue" record for a Nameserver instance,\n        do not allow modifications to this record. The Nameserver will\n        need to point to a different record before this record can\n        be updated.\n        '
    if (self.pk is None):
        return
    db_self = AddressRecord.objects.get(pk=self.pk)
    if ((db_self.label == self.label) and (db_self.domain == self.domain)):
        return
    Nameserver = mozdns.nameserver.models.Nameserver
    if Nameserver.objects.filter(addr_glue=self).exists():
        raise ValidationError('This record is a glue record for aNameserver. Change the Nameserver to edit this record.')

dataset/ETHPy150Open rtucker-mozilla/mozilla_inventory/mozdns/address_record/models.py BaseAddressRecord.check_glue_status/original