diff --git a/.env.sample b/.env.sample index 72470fd..63e2ea0 100644 --- a/.env.sample +++ b/.env.sample @@ -23,8 +23,8 @@ ADMIN_PASSWORD = '' TEST_DATA = "True" # Ollama for Categorization -OLLAMA_URL = "localhost:11434" +OLLAMA_URL = "http://localhost:11434" OLLAMA_USE_AUTH = "False" -OLLAMA_MODEL = "knoopx/mobile-vlm:3b-fp16" +OLLAMA_MODEL = "llama3.2-vision" OLLAMA_USERNAME = "" OLLAMA_PASSWORD = "" \ No newline at end of file diff --git a/docmanager_backend/config/settings.py b/docmanager_backend/config/settings.py index 20ef910..62b59d6 100644 --- a/docmanager_backend/config/settings.py +++ b/docmanager_backend/config/settings.py @@ -267,7 +267,7 @@ AUTH_USER_MODEL = "accounts.CustomUser" DATA_UPLOAD_MAX_NUMBER_FIELDS = 20480 GRAPH_MODELS = { - "app_labels": ["accounts", "documents", "document_requests", "questionnaires"] + "app_labels": ["accounts", "documents", "document_requests", "questionnaires", "authorization_requests"] } CORS_ORIGIN_ALLOW_ALL = True diff --git a/docmanager_backend/documents/serializers.py b/docmanager_backend/documents/serializers.py index 289f898..ebbd4ec 100644 --- a/docmanager_backend/documents/serializers.py +++ b/docmanager_backend/documents/serializers.py @@ -10,6 +10,10 @@ class DocumentUpdateSerializer(serializers.ModelSerializer): "name", "document_type", "number_pages", + "sent_from", + "document_month", + "document_year", + "subject" ] @@ -28,9 +32,13 @@ class DocumentUploadSerializer(serializers.ModelSerializer): "file", "document_type", "number_pages", + "sent_from", + "document_month", + "document_year", + "subject", "date_uploaded", ] - read_only_fields = ["id", "date-uploaded"] + read_only_fields = ["id", "date_uploaded"] class DocumentDeleteSerializer(serializers.ModelSerializer):