Commit c84dcdfe authored by Patrick's avatar Patrick

_id may not be used with m2m keys

parent 4b1aaa72
......@@ -108,7 +108,7 @@ def email_order(permanence_id, all_producers=True, producers_id=None, closed_del
# Orders send to our producers
if REPANIER_SETTINGS_SEND_ORDER_MAIL_TO_PRODUCER:
producer_set = Producer.objects.filter(
permanence_id=permanence.id,
permanence=permanence,
language=language_code,
).order_by('?')
if producers_id:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment