~homeworkprod/byceps-bungalows

fae2cd4c9c27672d51fb64482e060b2e528ca8ad — Jochen Kupperschmidt a month ago 699cbdc
Fix preselection of article in bungalow category update form
1 files changed, 3 insertions(+), 1 deletions(-)

M byceps/blueprints/admin/bungalow/views.py
M byceps/blueprints/admin/bungalow/views.py => byceps/blueprints/admin/bungalow/views.py +3 -1
@@ 779,7 779,9 @@ def category_update_form(category_id, erroneous_form=None):
        return redirect_to('.categories', party_id=party.id)

    form = (
        erroneous_form if erroneous_form else CategoryUpdateForm(obj=category)
        erroneous_form
        if erroneous_form
        else CategoryUpdateForm(obj=category, article_id=category.article.id)
    )
    form.set_ticket_category_choices(party.id)
    form.set_article_choices(shop.id)