def check_for_delegation(self):
        try:
            if not self.domain.delegated:
                return
        except ObjectDoesNotExist:
            return
        if not self.pk:  # We don't exist yet.
            raise ValidationError("No objects can be created in the {0}"
                                  "domain. It is delegated."
                                  .format(self.domain.name))
an initialized MetricsQuery object should have a bibcode attributes
dataset/ETHPy150Open rtucker-mozilla/mozilla_inventory/mozdns/models.py/MozdnsRecord.check_for_delegation--crossover with--dataset/ETHPy150Open andycasey/ads/ads/tests/test_metrics.py/TestMetricsQuery.test_init