Skip to content

Conversation

@Tosinibikunle
Copy link

resolves #740

Copy link
Member

@2ykwang 2ykwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! @Tosinibikunle

I’m currently a bit busy with work, so I’ll be able to do a full review this weekend.

In the meantime, could you please:

  • Confirm whether the mismatch error occurs in get_for_objects (from the issue description, it seems to be triggered in the “IN query”)
  • Check if the same issue also happens in get_for_object
  • Add a test case that covers this scenario

@hramezani
Copy link
Member

Also add a changelog entry

@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.88%. Comparing base (9ef8cf2) to head (d630437).
⚠️ Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #746      +/-   ##
==========================================
+ Coverage   95.81%   95.88%   +0.06%     
==========================================
  Files          34       34              
  Lines        1194     1190       -4     
==========================================
- Hits         1144     1141       -3     
+ Misses         50       49       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hramezani
Copy link
Member

@2ykwang could you review it again?

@hramezani
Copy link
Member

@2ykwang can you review this PR? probably we can include this PR in the next release.

:param queryset: The queryset to get the log entries for.
:type queryset: QuerySet
:return: The LogEntry objects for the objects in the given queryset.
:rtype: QuerySet """
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:rtype: QuerySet """
:rtype: QuerySet
"""

ct = ContentType.objects.get_for_model(obj.__class__)
log_entries = (
LogEntry.objects.get_for_object(obj)
LogEntry.objects.filter(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to call get_for_object instead of filter.
because it looks the same as the logic in this line.

@2ykwang 2ykwang modified the milestones: 3.3.0, 3.3.1 Sep 30, 2025
@2ykwang 2ykwang added the bug label Oct 8, 2025
@2ykwang 2ykwang modified the milestones: 3.3.1, 3.4.0 Oct 19, 2025
@2ykwang 2ykwang modified the milestones: 3.4.0, 3.5.0 Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

django.db.utils.ProgrammingError: operator does not exist: character varying = bigint

3 participants