remotes/origin/1203
kotzilla 11 years ago
parent b30d3bff7b
commit 9a738ae0f1
  1. 2
      exposition/views.py

@ -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():
Note.objects.filter(user__id=user.id, content_type=ct, object_id=object_id).update(text=text)
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)

Loading…
Cancel
Save