|
|
|
@ -412,7 +412,7 @@ def add_note(request, slug): |
|
|
|
if Note.objects.filter(user__id=user.id, content_type=ct, object_id=object_id).exists(): |
|
|
|
if Note.objects.filter(user__id=user.id, content_type=ct, object_id=object_id).exists(): |
|
|
|
Note.objects.filter(user__id=user.id, content_type=ct, object_id=object_id).update(text=text) |
|
|
|
Note.objects.filter(user__id=user.id, content_type=ct, object_id=object_id).update(text=text) |
|
|
|
else: |
|
|
|
else: |
|
|
|
Note.objects.create(content_type=ct, object_id=object_id, user=user, text=text) |
|
|
|
Note.objects.create(content_type=ct, object_id=object_id, user=user.id, text=text) |
|
|
|
|
|
|
|
|
|
|
|
user.calendar.expositions.add(e) |
|
|
|
user.calendar.expositions.add(e) |
|
|
|
|
|
|
|
|
|
|
|
|