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:
18
netbox/tenancy/migrations/0005_gfk_bigidfield.py
Normal file
18
netbox/tenancy/migrations/0005_gfk_bigidfield.py
Normal 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(),
|
||||
),
|
||||
]
|
@@ -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'
|
||||
|
Reference in New Issue
Block a user