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

Closes #8195: Ensure all GenericForeignKey ID fields employ PositiveBigIntegerField

This commit is contained in:
jeremystretch
2022-01-24 16:02:54 -05:00
parent 5abfe821bc
commit 571e9801f3
12 changed files with 177 additions and 12 deletions

View File

@@ -0,0 +1,18 @@
# Generated by Django 3.2.11 on 2022-01-24 21:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tenancy', '0004_extend_tag_support'),
]
operations = [
migrations.AlterField(
model_name='contactassignment',
name='object_id',
field=models.PositiveBigIntegerField(),
),
]

View File

@@ -131,7 +131,7 @@ class ContactAssignment(WebhooksMixin, ChangeLoggedModel):
to=ContentType,
on_delete=models.CASCADE
)
object_id = models.PositiveIntegerField()
object_id = models.PositiveBigIntegerField()
object = GenericForeignKey(
ct_field='content_type',
fk_field='object_id'