mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Add todo note for code removal
This commit is contained in:
@@ -150,6 +150,7 @@ def get_or_create_cart_id(request):
|
|||||||
break
|
break
|
||||||
|
|
||||||
# Migrate legacy data
|
# Migrate legacy data
|
||||||
|
# TODO: This is for the upgrade 1.7→1.8. We should remove this around April 2018
|
||||||
legacy_pos = CartPosition.objects.filter(cart_id=request.session.session_key, event=request.event)
|
legacy_pos = CartPosition.objects.filter(cart_id=request.session.session_key, event=request.event)
|
||||||
if legacy_pos.exists():
|
if legacy_pos.exists():
|
||||||
legacy_pos.update(cart_id=new_id)
|
legacy_pos.update(cart_id=new_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user