Skip to content

Commit

Permalink
Allow GFK to proxy models
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Apr 3, 2024
1 parent b602d9a commit 03470f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion timeline_logger/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class TimelineLog(models.Model):
null=True,
db_index=True,
)
content_object = GenericForeignKey("content_type", "object_id")
content_object = GenericForeignKey(
"content_type", "object_id", for_concrete_model=False
)
timestamp = models.DateTimeField(
verbose_name=_("timestamp"),
auto_now_add=True,
Expand Down

0 comments on commit 03470f6

Please sign in to comment.