|
|
@@ -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:
|