django-oscar/django-oscar

Cannot switch back from pre-defined benefit/condition to a non-pre-defined one

Open

#3,889 创建于 2022年3月10日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Python (5,871 star) (2,156 fork)batch import
Good first issue☁ Bug

描述

Issue Summary

The current benefit and condition forms don't work properly when switching back to using a non-pre-defined benefit/condition from a pre-defined one.

Steps to Reproduce

  1. Create an offer with a non-pre-defined benefit or condition.
  2. Go to the benefit/condition form for that offer and change it to a pre-defined one.
  3. Go back to the form and try to change it back to a non-pre-defined one.
    Instead of switching back, the benefit/condition is still referencing the previous pre-defined one.

Notes

Technical details

贡献者指南

Cannot switch back from pre-defined benefit/condition to a non-pre-defined one · django-oscar/django-oscar#3889 | Good First Issue