Procházet zdrojové kódy

Closes #19920: add ContactsMixin to ASN (#19981)

Kyer Lasswell před 6 měsíci
rodič
revize
8eefc39bf9
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      netbox/ipam/models/asns.py

+ 2 - 1
netbox/ipam/models/asns.py

@@ -5,6 +5,7 @@ from django.utils.translation import gettext_lazy as _
 from ipam.fields import ASNField
 from ipam.fields import ASNField
 from ipam.querysets import ASNRangeQuerySet
 from ipam.querysets import ASNRangeQuerySet
 from netbox.models import OrganizationalModel, PrimaryModel
 from netbox.models import OrganizationalModel, PrimaryModel
+from netbox.models.features import ContactsMixin
 
 
 __all__ = (
 __all__ = (
     'ASN',
     'ASN',
@@ -88,7 +89,7 @@ class ASNRange(OrganizationalModel):
         return available_asns
         return available_asns
 
 
 
 
-class ASN(PrimaryModel):
+class ASN(ContactsMixin, PrimaryModel):
     """
     """
     An autonomous system (AS) number is typically used to represent an independent routing domain. A site can have
     An autonomous system (AS) number is typically used to represent an independent routing domain. A site can have
     one or more ASNs assigned to it.
     one or more ASNs assigned to it.