Skip to content

Commit

Permalink
Fix hostname for created objects deleted is None (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
kofrezo committed Apr 4, 2023
1 parent 00e4de0 commit 98b4ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serveradmin/serverdb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def changes(request):
server_hostname = Server.objects.filter(
server_id=OuterRef('object_id')).values('hostname')
change_hostname = Change.objects.filter(
id=OuterRef('id'),
object_id=OuterRef('object_id'),
change_type=Change.Type.DELETE).order_by('-id').values('change_json')
commits = commits.prefetch_related(Prefetch(
'change_set',
Expand Down

0 comments on commit 98b4ecd

Please sign in to comment.