mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +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():
|
||||
try:
|
||||
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)
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user