better steps serializer
This commit is contained in:
@@ -1927,8 +1927,8 @@ def plannedsession_view(request,id=0,userid=0):
|
||||
r = getrequestplanrower(request,userid=userid)
|
||||
|
||||
ps = get_object_or_404(PlannedSession,pk=id)
|
||||
if ps.steps_json is not None:
|
||||
jsons = json.loads(ps.steps_json)
|
||||
if ps.steps is not None:
|
||||
jsons = ps.steps
|
||||
else:
|
||||
jsons = {}
|
||||
|
||||
@@ -2143,8 +2143,8 @@ def plannedsession_view(request,id=0,userid=0):
|
||||
comments = PlannedSessionComment.objects.filter(plannedsession=ps).order_by("created")
|
||||
|
||||
steps = ''
|
||||
if ps.steps_json:
|
||||
d = json.loads(ps.steps_json)
|
||||
if ps.steps:
|
||||
d = ps.steps
|
||||
steps = ps_dict_get_description_html(d)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user