modified: make_post_sell/views/shop_location.py
This commit is contained in:
parent
6706223f17
commit
b4698efb99
1 changed files with 1 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ def checkbox_to_bool(checkbox):
|
|||
|
||||
|
||||
def bool_to_checkbox(boolean):
|
||||
return "on" if boolean == True else "off"
|
||||
return "on" if boolean else "off"
|
||||
|
||||
|
||||
@view_config(route_name="shop_location_new", renderer="shop_location_form.j2")
|
||||
|
|
@ -164,7 +164,6 @@ def shop_location_edit(request):
|
|||
|
||||
|
||||
@view_config(route_name="shop_locations", renderer="shop_locations.j2")
|
||||
# @shop_owner_required()
|
||||
def shop_locations(request):
|
||||
return {
|
||||
"shop": request.shop,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue