diff --git a/calsocial/__init__.py b/calsocial/__init__.py index 9b4e3b1..991c1c7 100644 --- a/calsocial/__init__.py +++ b/calsocial/__init__.py @@ -217,7 +217,7 @@ class CalendarSocialApp(Flask): form = EventForm() if form.validate_on_submit(): - event = Event(user=current_user) + event = Event(profile=current_user.profile) form.populate_obj(event) db.session.add(event)