~sirex/ubuntu.lt/django

« back to all changes in this revision

Viewing changes to apps/socialplugin-events/socialplugin_events/views.py

  • Committer: Vytautas Astrauskas
  • Date: 2010-12-18 19:09:01 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: vastrauskas@gmail.com-20101218190901-81ua5z56u3iq3dpo
Moved template; modified urls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
from forms import EventForm
10
10
 
11
11
 
12
 
@render_to('social/socialplugin_events/add.html')
 
12
@render_to('socialplugin_events/add.html')
13
13
def add_event(request, event_id=None):
14
14
    """Add new event or edit existing.
15
15
    """
37
37
                                        # FIXME: Must be normal plugin!
38
38
                entry.author = request.user.get_profile()
39
39
                event.entry = entry
 
40
            entry.save()
 
41
            event.save()
40
42
            return redirect(
41
43
                    'socialplugin-events-display',
42
44
                    event_id=event.id)