Commit b754c1af authored by Matthieu Gautier's avatar Matthieu Gautier

Use the correct success url.

Fix #31
parent 1247243c
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.core.urlresolvers import reverse, reverse_lazy
from django.db import IntegrityError
from django.db.models import F
from django.db.models.functions import Lower
......@@ -224,9 +224,7 @@ class RadioUpdate(RadioQuerysetMixin, UpdateView):
class RadioDelete(RadioQuerysetMixin, DeleteView):
model = RadioShow
def get_success_url(self):
return reverse('message_thank')
success_url = reverse_lazy('radio_index')
message_create = MessageCreate.as_view()
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment