X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/91117520dbe0336cd5acc91c6d8e23d81141f9df..c66b8465f48325fe5fdc0fcf600f97dcc7bb7a26:/shop/templatetags/shop_tags.py diff --git a/shop/templatetags/shop_tags.py b/shop/templatetags/shop_tags.py index 10c53ae..9ecf196 100755 --- a/shop/templatetags/shop_tags.py +++ b/shop/templatetags/shop_tags.py @@ -10,6 +10,6 @@ register = template.Library() @register.inclusion_tag('shop/snippets/order_form.html', takes_context=True) def order_form_for(context, offer, form=None): - if form is None: + if not form: form = OrderForm(offer) return {'form': form}