Skip to content

Commit

Permalink
Fix speculative registry bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed May 8, 2024
1 parent d4856dc commit c91864e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible_base/lib/routers/association_resource_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ def register(self, prefix, viewset, related_views={}, basename=None):
associated_viewset = self.associated_viewset_cls_factory(related_view)

# Generate the related viewset
# Name includes and parent and child viewset, because this defines global uniqueness
modified_related_viewset = type(
f'Related{related_view.__name__}',
f'Related{viewset.__name__}{related_view.__name__}',
(mixin_class, associated_viewset),
{
'association_fk': fk,
Expand Down

0 comments on commit c91864e

Please sign in to comment.