Browse Source

caricati aggiornamenti e db

mauro 9 months ago
parent
commit
7ce888311c
1 changed files with 2 additions and 1 deletions
  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: