mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
trombi: add missing quick notif
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
parent
de96c07ba8
commit
8a95f71596
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user