Bugfixes for emails and bugfixes for trade acceptance quantities being checked on create, closes #1
This commit is contained in:
parent
32da8157a6
commit
bd7a65975f
21 changed files with 95 additions and 86 deletions
|
|
@ -62,7 +62,7 @@ class TradeAcceptanceCreateForm(forms.ModelForm):
|
|||
TradeAcceptance.AcceptanceState.RECEIVED,
|
||||
]
|
||||
available_requested_ids = []
|
||||
for through_obj in trade_offer.trade_offer_have_cards.all():
|
||||
for through_obj in trade_offer.have_cards_available:
|
||||
active_count = trade_offer.acceptances.filter(
|
||||
requested_card=through_obj.card,
|
||||
state__in=active_states
|
||||
|
|
@ -73,7 +73,7 @@ class TradeAcceptanceCreateForm(forms.ModelForm):
|
|||
|
||||
# Update available offered_card choices from the TradeOffer's "want" side.
|
||||
available_offered_ids = []
|
||||
for through_obj in trade_offer.trade_offer_want_cards.all():
|
||||
for through_obj in trade_offer.want_cards_available:
|
||||
active_count = trade_offer.acceptances.filter(
|
||||
offered_card=through_obj.card,
|
||||
state__in=active_states
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue