Skip to content

Commit 03470f6

Browse files
committed
Allow GFK to proxy models
1 parent b602d9a commit 03470f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

timeline_logger/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ class TimelineLog(models.Model):
2929
null=True,
3030
db_index=True,
3131
)
32-
content_object = GenericForeignKey("content_type", "object_id")
32+
content_object = GenericForeignKey(
33+
"content_type", "object_id", for_concrete_model=False
34+
)
3335
timestamp = models.DateTimeField(
3436
verbose_name=_("timestamp"),
3537
auto_now_add=True,

0 commit comments

Comments
 (0)