This commit is contained in:
iriska-gri committed 2024-07-08 16:42:44 +03:00
1 parent 11f45daf67
commit 41ec40fedb
9 files changed
+199 -101

No files matched your search

+9 -1
View File
@@ -146,17 +146,25 @@ class MyEvents(APIView):
# 'files':[]
# })
created=True
try:
event = json.loads(request.data['event'])
# event = json.loads(event)
filesadd = request.FILES.getlist('files')
# participant=request.POST['participant']
participant= event['participant']
event['calendar']=Calendar(id=event['calendar'])
participant = event['participant']
files = [x['id'] for x in event['files']]
del event['files']
del event['participant']
evnt=None
if 'id' in event: