1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Rename PrimaryModel to NetBoxModel

This commit is contained in:
jeremystretch
2022-01-26 20:57:14 -05:00
parent a795b95f7e
commit c5650bb278
20 changed files with 66 additions and 64 deletions

View File

@@ -3,7 +3,7 @@ from django.db import models
from django.urls import reverse
from dcim.fields import ASNField
from netbox.models import PrimaryModel
from netbox.models import NetBoxModel
__all__ = (
'ProviderNetwork',
@@ -11,7 +11,7 @@ __all__ = (
)
class Provider(PrimaryModel):
class Provider(NetBoxModel):
"""
Each Circuit belongs to a Provider. This is usually a telecommunications company or similar organization. This model
stores information pertinent to the user's relationship with the Provider.
@@ -70,7 +70,7 @@ class Provider(PrimaryModel):
return reverse('circuits:provider', args=[self.pk])
class ProviderNetwork(PrimaryModel):
class ProviderNetwork(NetBoxModel):
"""
This represents a provider network which exists outside of NetBox, the details of which are unknown or
unimportant to the user.