Skip to content

Commit

Permalink
Force signing order to reload from DB to ensure it always has up-to-d…
Browse files Browse the repository at this point in the history
…ate signet set
  • Loading branch information
powderflask committed Nov 21, 2024
1 parent 4ee3a30 commit 7d2b7ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion signoffs/core/signing_order/signing_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ def __init__(
def get_service_instance(self, owner_instance):
"""Return an instance of the `strategy_class` for the given owner instance"""
signet_set_accessor = getattr(owner_instance, self.signet_set_accessor)
# Signing order always needs up-to-date signets - force reload from DB to ensure not using cached signet_set
return self.strategy_class(
pattern=self.pattern, signets_queryset=signet_set_accessor.all()
pattern=self.pattern, signets_queryset=signet_set_accessor.all().all() # !important!
)

def __get__(self, instance, owner=None):
Expand Down

0 comments on commit 7d2b7ff

Please sign in to comment.