Changeset - 9dd31128bbba
[Not reviewed]
0 1 0
Christopher Neugebauer - 8 years ago 2016-09-13 03:19:09
chrisjrn@gmail.com
Restricts ‘amend’ product widgets to the original product.

Fixes #76.
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
registrasion/views.py
Show inline comments
...
 
@@ -826,6 +826,10 @@ def amend_registration(request, user_id):
 
        prefix="products",
 
    )
 

	
 
    for item, form in zip(items, formset):
 
        queryset = inventory.Product.objects.filter(id=item.product.id)
 
        form.fields["product"].queryset = queryset
 

	
 
    voucher_form = forms.VoucherForm(
 
        request.POST or None,
 
        prefix="voucher",
0 comments (0 inline, 0 general)