formset
This commit is contained in:
@@ -396,6 +396,10 @@ def get_workouts_session(r,ps):
|
||||
|
||||
def update_plannedsession(ps,cd):
|
||||
for attr, value in cd.items():
|
||||
if attr == 'comment':
|
||||
value.replace("\r\n", "
");
|
||||
value.replace("\n", "
");
|
||||
print value
|
||||
setattr(ps, attr, value)
|
||||
|
||||
ps.save()
|
||||
|
||||
Reference in New Issue
Block a user