Skip to content

Commit

Permalink
renamed next to next_url
Browse files Browse the repository at this point in the history
  • Loading branch information
llazzaro committed Jul 11, 2015
1 parent 09a3090 commit 69da14e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions schedule/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,10 @@ def get_success_url(self):
# If the key word argument redirect is set
# Lastly redirect to the event detail of the recently create event
"""
next = self.kwargs.get('next') or reverse('day_calendar', args=[self.object.calendar.slug])
next = get_next_url(self.request, next)
return next
next_url = self.kwargs.get('next') or reverse('day_calendar', args=[self.object.calendar.slug])
next_url = get_next_url(self.request, next_url)
return next_url


def get_occurrence(event_id, occurrence_id=None, year=None, month=None, day=None, hour=None, minute=None, second=None):
"""
Expand Down

0 comments on commit 69da14e

Please sign in to comment.