Skip to content

Commit

Permalink
fix object_id
Browse files Browse the repository at this point in the history
  • Loading branch information
ebertti committed Aug 27, 2024
1 parent b303719 commit a1f58bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ class Tag(models.Model):
name = models.CharField(max_length=50)

content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
object_id = models.PositiveBigIntegerField()
object_id = models.BigIntegerField()
generic = GenericForeignKey('content_type', 'object_id')

0 comments on commit a1f58bd

Please sign in to comment.