mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-13 12:33:23 +02:00
.
This commit is contained in:
parent
7133b3012b
commit
d5f7256ec5
1 changed files with 7 additions and 0 deletions
|
|
@ -916,6 +916,13 @@ class ExampleSecretView(OTPRequiredMixin, TemplateView):
|
|||
|
||||
class OutputStatUpdateRedirectView(View):
|
||||
def get(self, request, output_stats_id, label_id):
|
||||
if not output_stats_id:
|
||||
messages.add_message(
|
||||
request,
|
||||
messages.ERROR,
|
||||
"<strong>Hmmmm....</srong> Not ready yet. Please retry in a few seconds."
|
||||
)
|
||||
return redirect('edit_label', pk=label_id)
|
||||
try:
|
||||
output_stat = OutputStat.objects.get(id=output_stats_id)
|
||||
except OutputStat.DoesNotExist:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue