trombi: add missing quick notif

Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
Skia 2017-07-05 21:54:32 +02:00
parent de96c07ba8
commit 8a95f71596

View File

@ -135,7 +135,9 @@ class TrombiDetailView(CanEditMixin, QuickNotifMixin, TrombiTabsMixin, DetailVie
if form.is_valid(): if form.is_valid():
try: try:
TrombiUser(user=form.cleaned_data['user'], trombi=self.object).save() TrombiUser(user=form.cleaned_data['user'], trombi=self.object).save()
except: pass # We don't care about duplicate keys self.quick_notif_list.append("qn_success")
except: # We don't care about duplicate keys
self.quick_notif_list.append("qn_fail")
return super(TrombiDetailView, self).get(request, *args, **kwargs) return super(TrombiDetailView, self).get(request, *args, **kwargs)
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):