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

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