mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Remove BigIDModel
This commit is contained in:
@ -54,11 +54,6 @@ class Migration(migrations.Migration):
|
|||||||
name='id',
|
name='id',
|
||||||
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False),
|
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False),
|
||||||
),
|
),
|
||||||
migrations.AlterField(
|
|
||||||
model_name='tag',
|
|
||||||
name='id',
|
|
||||||
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='taggeditem',
|
model_name='taggeditem',
|
||||||
name='id',
|
name='id',
|
||||||
|
@ -14,6 +14,9 @@ from utilities.fields import ColorField
|
|||||||
#
|
#
|
||||||
|
|
||||||
class Tag(ExportTemplatesMixin, WebhooksMixin, ChangeLoggedModel, TagBase):
|
class Tag(ExportTemplatesMixin, WebhooksMixin, ChangeLoggedModel, TagBase):
|
||||||
|
id = models.BigAutoField(
|
||||||
|
primary_key=True
|
||||||
|
)
|
||||||
color = ColorField(
|
color = ColorField(
|
||||||
default=ColorChoices.COLOR_GREY
|
default=ColorChoices.COLOR_GREY
|
||||||
)
|
)
|
||||||
|
@ -31,18 +31,6 @@ class BaseModel(
|
|||||||
abstract = True
|
abstract = True
|
||||||
|
|
||||||
|
|
||||||
class BigIDModel(models.Model):
|
|
||||||
"""
|
|
||||||
Abstract base model for all data objects. Ensures the use of a 64-bit PK.
|
|
||||||
"""
|
|
||||||
id = models.BigAutoField(
|
|
||||||
primary_key=True
|
|
||||||
)
|
|
||||||
|
|
||||||
class Meta:
|
|
||||||
abstract = True
|
|
||||||
|
|
||||||
|
|
||||||
class ChangeLoggedModel(ChangeLoggingMixin, CustomValidationMixin, models.Model):
|
class ChangeLoggedModel(ChangeLoggingMixin, CustomValidationMixin, models.Model):
|
||||||
"""
|
"""
|
||||||
Base model for all objects which support change logging.
|
Base model for all objects which support change logging.
|
||||||
|
Reference in New Issue
Block a user