Skip to content

Commit

Permalink
fixup!: review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
rgraber committed Oct 31, 2024
1 parent da10327 commit 538b528
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kobo/apps/audit_log/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,9 @@ def create_from_detail_request(cls, request):
'log_subtype': PROJECT_HISTORY_LOG_PROJECT_SUBTYPE,
'ip_address': get_client_ip(request),
'source': get_human_readable_client_user_agent(request),
'latest_version_uid': updated_data['latest_version.uid']
}

# always store the latest version uid
common_metadata.update(
{'latest_version_uid': updated_data['latest_version.uid']}
)

changed_field_to_action_map = {
'name': cls.name_change,
'settings': cls.settings_change,
Expand Down

0 comments on commit 538b528

Please sign in to comment.