1
0
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:
jeremystretch
2022-01-26 09:02:04 -05:00
parent e4abbfb2c6
commit b797b08bcf
3 changed files with 3 additions and 17 deletions

View File

@ -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',

View File

@ -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
) )

View File

@ -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.