Commit bc969124 authored by Matthieu Gautier's avatar Matthieu Gautier

Merge branch 'correct_delete_message' into 'master'

Use the correct success url.

Closes #31

See merge request !36
parents 1247243c b754c1af
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
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment