fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Working book shop.
[prawokultury.git]
/
shop
/
templatetags
/
shop_tags.py
diff --git
a/shop/templatetags/shop_tags.py
b/shop/templatetags/shop_tags.py
index
10c53ae
..
9ecf196
100755
(executable)
--- 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):
@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}
form = OrderForm(offer)
return {'form': form}