mauro 9 месяцев назад
Родитель
Сommit
7ce888311c
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      att/views.py

+ 2 - 1
att/views.py

@@ -2,6 +2,7 @@ from django.shortcuts import render
 from django.utils import timezone
 from .models import *
 import datetime
+from config.views import *
 
 ''' non esistono attività specifiche su web
 ma solo funzioni che registrano o ritornano le attivita' richieste
@@ -18,7 +19,7 @@ def setNewLog(causale=None,**kwargs):
 
   try:
     causale = Causale.objects.get(pk=causale)
-  except DoesNotExist as dne:
+  except Causale.DoesNotExist as dne:
     print("Errore ricerca causale",dne)
     causale = Causale.objects.get(pk=getConfig("CausaleErr"))
   if causale: