adding session edit
This commit is contained in:
@@ -110,6 +110,14 @@ def get_sessions(r,startdate=timezone.now(),
|
||||
rower__in=[r],
|
||||
startdate__gte=startdate,
|
||||
enddate__lte=enddate,
|
||||
).order_by("startdate")
|
||||
).order_by("startdate","enddate")
|
||||
|
||||
return sps
|
||||
|
||||
def update_plannedsession(ps,cd):
|
||||
for attr, value in cd.items():
|
||||
setattr(ps, attr, value)
|
||||
|
||||
ps.save()
|
||||
|
||||
return 1,'Planned Session Updated'
|
||||
|
||||
Reference in New Issue
Block a user